Trimble · API Governance Rules
Trimble API Rules
Spectral linting rules defining API design standards and conventions for Trimble.
12 Rules
error 3
warn 8
Rule Categories
trimble
Rules
warn
trimble-operation-ids-camel-case
Operation IDs must use camelCase naming convention
$.paths[*][get,post,put,patch,delete,head,options].operationId
warn
trimble-operation-summary-title-case
Operation summaries should use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
trimble-operation-has-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete,head,options]
warn
trimble-tag-title-case
Tags must use Title Case
$.paths[*][get,post,put,patch,delete].tags[*]
warn
trimble-operation-description
All operations should have a description
$.paths[*][get,post,put,patch,delete]
warn
trimble-bearer-auth-scheme
Bearer auth security scheme should be named BearerAuth
$.components.securitySchemes
warn
trimble-response-200-schema
Successful GET responses must define a response schema
$.paths[*].get.responses.200.content.application/json
warn
trimble-project-id-path-param
Project ID path parameters must be named projectId
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]
hint
trimble-connect-pagination-params
List operations should include pagination parameters
$.paths[*].get
warn
trimble-error-responses
Operations should define 401 Unauthorized response
$.paths[*][get,post,put,patch,delete].responses
error
trimble-no-x-internal
Internal-only operations must not appear in public API specifications
$.paths[*][get,post,put,patch,delete]
error
trimble-api-version-in-info
API specification must include a version in info object
$.info