Sportmonks · API Governance Rules
Sportmonks API Rules
Spectral linting rules defining API design standards and conventions for Sportmonks.
9 Rules
error 2
warn 6
Rule Categories
sportmonks
Rules
error
error
sportmonks-info-license
Sportmonks API specs must declare a license block.
$.info
warn
sportmonks-server-base-url
Sportmonks Football servers must point at the v3 base URL.
$.servers[*].url
warn
sportmonks-security-api-token
Sportmonks endpoints must accept the API token via Authorization header or api_token query.
$.components.securitySchemes
warn
sportmonks-operation-id-camel
operationId must be camelCase for consistency with Sportmonks endpoint naming.
$.paths[*][get,post,put,delete,patch].operationId
warn
sportmonks-operation-summary-title-case
operation summary should use Title Case.
$.paths[*][get,post,put,delete,patch].summary
warn
sportmonks-tag-defined
every operation must declare a tag.
$.paths[*][get,post,put,delete,patch]
warn
sportmonks-response-200-schema
200 responses must reference a schema (no untyped JSON).
$.paths[*][get,post,put,delete,patch].responses.200.content.application/json
hint
sportmonks-include-param-present
collection endpoints should accept the include parameter for relational embedding.
$.paths[?(@property.match(/^\\/(fixtures|leagues|teams|players|livescores|standings)/))].get.parameters