TheSportsDB · API Governance Rules
TheSportsDB API Rules
Spectral linting rules defining API design standards and conventions for TheSportsDB.
8 Rules
error 2
warn 5
info 1
Rule Categories
thesportsdb
Rules
warn
thesportsdb-operation-summary-title-case
All operation summaries must use Title Case.
$.paths[*][*].summary
warn
thesportsdb-operation-ids-camel-case
All operationIds must use camelCase.
$.paths[*][*].operationId
error
thesportsdb-tags-required
All operations must have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
thesportsdb-description-required
All operations must have a description.
$.paths[*][get,post,put,patch,delete]
info
thesportsdb-php-path-suffix
TheSportsDB API paths end in .php per v1 convention.
$.paths[*]~
error
thesportsdb-200-response-required
All GET operations must define a 200 response.
$.paths[*][get].responses
warn
thesportsdb-query-params-for-search
Search operations should have at least one query parameter.
$.paths[?(@~'search|lookup')][get]
warn
thesportsdb-response-schema-json
All 200 responses must define a content schema.
$.paths[*][get].responses[200].content