Trakt · API Governance Rules
Trakt API Rules
Spectral linting rules defining API design standards and conventions for Trakt.
8 Rules
error 1
warn 7
Rule Categories
trakt
Rules
warn
trakt-path-snake-case
Trakt paths use snake_case (or single lowercase words) for non-parameter segments.
$.paths
warn
trakt-summary-title-case
Every operation summary should use Title Case (e.g. "Get A Movie").
$.paths.*[get,post,put,patch,delete].summary
error
trakt-operationid-required
All operations must declare an operationId.
$.paths.*[get,post,put,patch,delete]
warn
trakt-bearer-security-defined
A bearerAuth security scheme should be defined for protected operations.
$.components.securitySchemes
warn
trakt-operation-description
All operations should include a description that explains required scopes (OAuth, VIP) and side effects.
$.paths.*[get,post,put,patch,delete]
warn
trakt-server-url
The production base URL must be api.trakt.tv.
$.servers[*].url
warn
trakt-pagination-naming
Pagination query parameters should be named "page" and "limit" (case-sensitive).
$.paths.*[get].parameters[?(@.in == 'query')].name
warn
trakt-operation-tags
Every operation should declare at least one tag in Title Case.
$.paths.*[get,post,put,patch,delete]