Runa · API Governance Rules
Runa API Rules
Spectral linting rules defining API design standards and conventions for Runa.
9 Rules
error 1
warn 7
info 1
Rule Categories
runa
Rules
warn
runa-operation-ids-camel-case
All operationIds must use camelCase naming convention.
$.paths.*[get,post,put,patch,delete].operationId
warn
runa-tags-title-case
All tags must use Title Case.
$.tags[*].name
warn
runa-api-key-header
All operations must use X-Api-Key apiKey authentication.
$.components.securitySchemes.apiKeyAuth
warn
runa-idempotency-key-on-orders
Order creation endpoint should document X-Idempotency-Key header.
$.paths.*.post.parameters[?(@.name=='X-Idempotency-Key')]
warn
runa-paths-kebab-case
All path segments must use kebab-case.
$.paths
error
runa-response-200-defined
All operations must define a 200 response.
$.paths.*[get,post,put,patch,delete].responses
warn
runa-401-defined
All secured endpoints must define a 401 response.
$.paths.*[get,post].responses
warn
runa-summaries-title-case
Operation summaries must use Title Case.
$.paths.*[get,post,put,patch,delete].summary
info
runa-versioned-api
API version should be expressed in the server URL path.
$.servers[*].url