Sabre · API Governance Rules
Sabre API Rules
Spectral linting rules defining API design standards and conventions for Sabre.
9 Rules
error 1
warn 4
info 4
Rule Categories
sabre
Rules
warn
sabre-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
sabre-bearer-auth-required
All endpoints except authentication must require BearerAuth
$.paths[*][*]
warn
sabre-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
info
sabre-ota-schema-names
OTA request/response schemas should use OTA naming convention
$.components.schemas
warn
sabre-tags-required
All operations must have at least one tag
$.paths[*][*]
info
sabre-versioned-paths
Sabre API paths should include version prefix
$.paths
info
sabre-rate-limit-response
Operations should define 429 rate limit response
$.paths[*][get,post].responses
info
sabre-error-response-structure
Error responses should use standard Sabre error format
$.paths[*][*].responses[4*,5*].content[*].schema
error
sabre-post-request-body-required
POST operations must define a request body
$.paths[*][post]