Regal · API Governance Rules
Regal API Rules
Spectral linting rules defining API design standards and conventions for Regal.
7 Rules
error 5
warn 2
Rule Categories
regal
Rules
error
regal-info-contact
All Regal OpenAPI specs must declare an info.contact block pointing to Regal Support.
$.info.contact
error
regal-server-https
Regal API servers must use HTTPS.
$.servers[*].url
error
regal-server-host
Regal servers must be one of api.regal.ai or events.regalvoice.com.
$.servers[*].url
error
regal-auth-api-key
Regal APIs use an Authorization-header API key.
$.components.securitySchemes
warn
regal-operation-summary-title-case
Operation summaries should use Title Case.
$.paths[*][*].summary
error
regal-operation-id-required
Every operation must declare an operationId.
$.paths[*][*]
warn
regal-rate-limit-response
Each operation should document a 429 response.
$.paths[*][*].responses