Warner Bros. Discovery · API Governance Rules
Warner Bros. Discovery API Rules
Spectral linting rules defining API design standards and conventions for Warner Bros. Discovery.
10 Rules
error 6
warn 4
Rule Categories
wbd
Rules
error
wbd-operation-ids-required
All operations must have an operationId
$.paths[*][*]
warn
wbd-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
wbd-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
error
wbd-paths-versioned
All API paths must include a version prefix (/v1/, /v2/, etc.)
$.paths
error
wbd-oauth2-security
WBD APIs use OAuth2 client credentials for authentication
$.components.securitySchemes
error
wbd-response-200-or-201
All operations must define a successful 2xx response
$.paths[*][*].responses
warn
wbd-error-responses-defined
Operations should define 401 and 404 error responses
$.paths[*][*].responses
error
wbd-info-description
Info object must have a description
$.info
warn
wbd-response-schema
Successful responses must define a schema
$.paths[*][*].responses['200'].content['application/json']
warn
wbd-pagination-parameters
Collection GET endpoints should support limit and offset parameters
$.paths[*].get.parameters[*].name