Toornament · API Governance Rules
Toornament API Rules
Spectral linting rules defining API design standards and conventions for Toornament.
9 Rules
error 3
warn 5
Rule Categories
toornament
Rules
warn
toornament-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
toornament-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
toornament-operation-description-required
All operations must have a description
$.paths[*][get,post,put,patch,delete]
error
toornament-api-key-required
API key security should be defined
$.components.securitySchemes
error
toornament-oauth2-required
OAuth2 security should be defined for write operations
$.components.securitySchemes
warn
toornament-pagination-range-header
List endpoints (GET /tournaments etc.) should document Range header
$.paths[*].get.parameters[?(@.name == 'Range')]
hint
toornament-list-response-206
Paginated list endpoints should return 206 Partial Content
$.paths[*].get.responses
warn
toornament-path-param-description
Path parameters should have descriptions
$.paths[*][*].parameters[?(@.in=='path')]
warn
toornament-delete-no-content
DELETE operations should return 204 No Content
$.paths[*].delete.responses