SimpleLocalize · API Governance Rules
SimpleLocalize API Rules
Spectral linting rules defining API design standards and conventions for SimpleLocalize.
8 Rules
error 4
warn 4
Rule Categories
simplelocalize
Rules
error
simplelocalize-api-key-header
All translation management endpoints must require the X-SimpleLocalize-Token API key header
$.paths[?([email protected](/\/api\/v2\/projects/))].*.security
error
simplelocalize-versioned-paths
All paths must be versioned with /api/v1/ or /api/v2/ prefix
$.paths[*]~
warn
simplelocalize-response-envelope
All success responses must use SimpleLocalize envelope with status, message, and data fields
$.paths.*.*.responses.200.content.application/json.schema
error
simplelocalize-operation-ids
All operations must have camelCase operationId values
$.paths.*.*.operationId
warn
simplelocalize-tag-usage
All operations must have at least one tag
$.paths.*.*
warn
simplelocalize-customer-key-length
Customer key schema must enforce max length of 40 characters
$.components.schemas.Customer.properties.key
warn
simplelocalize-language-key-length
Language key schema must enforce max length of 20 characters
$.components.schemas.Language.properties.key
error
simplelocalize-security-schemes
Security schemes must define both ApiKeyAuth and BearerAuth
$.components.securitySchemes