Treblle · API Governance Rules
Treblle API Rules
Spectral linting rules defining API design standards and conventions for Treblle.
7 Rules
error 2
warn 5
Rule Categories
treblle
Rules
error
treblle-operation-id-required
All Treblle API operations should have an operationId for consistent SDK generation and documentation.
$.paths[*][get,post,put,patch,delete]
warn
treblle-api-key-auth
Treblle API uses API key authentication via the Treblle-Api-Key header. All operations should declare security requirements.
$.paths[*][*]
warn
treblle-response-200-defined
All Treblle API GET operations should define a 200 response.
$.paths[*].get.responses
warn
treblle-response-401-defined
All Treblle API operations requiring authentication should document the 401 Unauthorized response.
$.paths[*][get,post,put,patch,delete].responses
warn
treblle-tags-required
All operations should be tagged for catalog navigation.
$.paths[*][*].tags
warn
treblle-description-required
All operations should have a clear description.
$.paths[*][*]
error
treblle-summary-required
All operations should have a summary for quick identification.
$.paths[*][*]