Sage · API Governance Rules
Sage API Rules
Spectral linting rules defining API design standards and conventions for Sage.
10 Rules
error 1
warn 4
info 5
Rule Categories
sage
Rules
warn
sage-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
error
sage-oauth2-security-required
All endpoints must use OAuth2 authentication
$.paths[*][*]
warn
sage-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
sage-tags-required
All operations must have at least one tag
$.paths[*][*]
info
sage-resource-paths-snake-case
Sage API resource paths use snake_case
$.paths
info
sage-list-pagination-items-per-page
List endpoints should support items_per_page parameter
$.paths[*][get]
info
sage-response-list-format
List responses should use $items array format
$.components.schemas[*List]*
info
sage-rate-limit-documented
API documentation should reference rate limiting
$.info.description
warn
sage-oauth-authorization-code-flow
OAuth2 security scheme must use authorizationCode flow
$.components.securitySchemes[*].flows
info
sage-response-delete-204
DELETE operations should return 204 No Content
$.paths[*][delete].responses