SafeLine · API Governance Rules
SafeLine API Rules
Spectral linting rules defining API design standards and conventions for SafeLine.
8 Rules
error 2
warn 3
info 3
Rule Categories
safeline
Rules
warn
safeline-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
error
safeline-api-token-auth
All endpoints must use X-SLCE-API-Token header authentication
$.paths[*][*]
warn
safeline-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
info
safeline-response-envelope-format
All responses should use SafeLine envelope format with err, data, msg
$.components.schemas[*]
warn
safeline-tags-defined
All operations must have at least one tag
$.paths[*][*]
info
safeline-management-endpoints-versioned
SafeLine management API endpoints start with /api/ prefix
$.paths
info
safeline-paginated-endpoints
List endpoints should support page and page_size parameters
$.paths[*][get].parameters
error
safeline-security-scheme-apikey
Security scheme must use apiKey type
$.components.securitySchemes[*]