Trino · API Governance Rules
Trino API Rules
Spectral linting rules defining API design standards and conventions for Trino.
8 Rules
error 2
warn 6
Rule Categories
trino
Rules
error
trino-path-must-start-with-v1
All Trino API paths must be versioned with /v1/ prefix
$.paths[*]~
warn
trino-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
trino-user-header-documented
Operations should document the X-Trino-User header
$.paths[*].post.parameters[*]
warn
trino-operation-id-camel-case
OperationIds must use camelCase
$.paths[*][*].operationId
warn
trino-operation-must-have-description
All operations must have a description
$.paths[*][*]
error
trino-get-must-have-200
GET operations must have a 200 response defined
$.paths[*].get
warn
trino-path-params-must-have-descriptions
Path parameters must have descriptions
$.paths[*][*].parameters[?(@.in == 'path')].description
warn
trino-schema-names-pascal-case
Schema names must use PascalCase
$.components.schemas[*]~