SportsGameOdds · API Governance Rules
SportsGameOdds API Rules
Spectral linting rules defining API design standards and conventions for SportsGameOdds.
9 Rules
error 5
warn 4
Rule Categories
sportsgameodds
Rules
error
sportsgameodds-operation-tags
All operations must have exactly one tag from the approved list.
$.paths[*][*]
warn
sportsgameodds-paths-trailing-slash
Paths should end with a trailing slash per SportsGameOdds convention.
$.paths
error
sportsgameodds-operation-ids-camel-case
OperationIds must use camelCase.
$.paths[*][*].operationId
error
sportsgameodds-response-200-required
All GET operations must define a 200 response.
$.paths[*].get
error
sportsgameodds-apikey-security
All operations must use apiKeyHeader security scheme.
$.paths[*][*]
warn
sportsgameodds-query-param-names-camel-case
Query parameter names must use camelCase.
$.paths[*][*].parameters[?(@.in == 'query')].name
warn
sportsgameodds-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
sportsgameodds-schemas-have-descriptions
Schema properties should have descriptions.
$.components.schemas[*].properties[*]
error
sportsgameodds-path-params-in-path
Path parameters defined in operation must appear in the path.
$.paths[*][*].parameters[?(@.in == 'path')].name