Tivo · API Governance Rules
Tivo API Rules
Spectral linting rules defining API design standards and conventions for Tivo.
13 Rules
error 6
warn 5
Rule Categories
tivo
Rules
error
tivo-operation-ids-required
All operations must have operationId values
$.paths[*][get,post,put,delete,patch]
error
tivo-operation-summaries-required
All operations must have a summary
$.paths[*][get,post,put,delete,patch]
warn
tivo-operation-tags-required
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
error
tivo-versioned-paths
All paths must begin with /v3/ for the Video Metadata API
$.paths
error
tivo-bearer-auth-required
API must define bearer token authentication
$.components.securitySchemes.bearerAuth
error
tivo-response-200-defined
All GET operations must define a 200 success response
$.paths[*].get
warn
tivo-response-401-defined
All operations must handle unauthorized responses
$.paths[*][get,post]
warn
tivo-response-404-defined
Resource lookup operations must handle not found responses
$.paths[*~contains('{')][get]
warn
tivo-kebab-case-paths
Path segments must use kebab-case
$.paths
warn
tivo-content-type-json
Response schemas must use application/json content type
$.paths[*][*].responses[*].content
hint
tivo-schemas-have-descriptions
All schema objects should have descriptions
$.components.schemas[*]
error
tivo-servers-defined
API must define at least one server URL
$
hint
tivo-info-version-semver
API version should follow semantic versioning
$.info.version