Tripadvisor · API Governance Rules
Tripadvisor API Rules
Spectral linting rules defining API design standards and conventions for Tripadvisor.
9 Rules
error 2
warn 7
Rule Categories
tripadvisor
Rules
warn
tripadvisor-path-versioned
Tripadvisor Content API paths must use /api/v1/ prefix
$.paths[*]~
warn
tripadvisor-operation-id-camel-case
OperationIds must use camelCase
$.paths[*][*].operationId
error
tripadvisor-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
tripadvisor-get-must-have-200
GET operations must define a 200 response
$.paths[*].get
warn
tripadvisor-must-have-400-response
All operations must document a 400 Bad Request response
$.paths[*][get,post,put,delete].responses
warn
tripadvisor-must-have-401-response
All operations must document 401 Unauthorized response
$.paths[*][get,post,put,delete].responses
warn
tripadvisor-operation-must-have-description
All operations must have a description
$.paths[*][get,post,put,patch,delete]
warn
tripadvisor-schema-pascal-case
Schema names must use PascalCase
$.components.schemas[*]~
warn
tripadvisor-operations-must-use-defined-tags
Operations should use tags defined in the top-level tags array
$.paths[*][*].tags[*]