Tetrate · API Governance Rules
Tetrate API Rules
Spectral linting rules defining API design standards and conventions for Tetrate.
9 Rules
error 2
warn 6
info 1
Rule Categories
tsb
Rules
error
tsb-path-version-prefix
All TSB REST API paths must start with /v2/
$.paths[*]~
warn
tsb-org-scoped-paths
Organization-scoped resources must include {organization} path parameter
$.paths[?(@property.startsWith('/v2/organizations/'))]
warn
tsb-operation-id-camel-case
All operationIds must be camelCase
$.paths[*][*].operationId
warn
tsb-200-content-type-json
Successful responses must return application/json content type
$.paths[*][get,post,put].responses.200
warn
tsb-delete-no-body
DELETE operations should not have a request body
$.paths[*].delete
warn
tsb-schema-description
All named schemas must have a description
$.components.schemas[*]
error
tsb-security-on-mutations
POST, PUT, DELETE operations must have security defined
$.paths[*][post,put,delete]
warn
tsb-tags-title-case
Tags must use Title Case format
$.paths[*][*].tags[*]
info
tsb-list-returns-array
List operations (operationId starting with 'list') must return an array property
$.paths[*].get[?(@.operationId && @.operationId.startsWith('list'))]