Terrain Discovery Environment API · API Governance Rules
Terrain Discovery Environment API API Rules
Spectral linting rules defining API design standards and conventions for Terrain Discovery Environment API.
8 Rules
error 1
warn 5
info 2
Rule Categories
terrain
Rules
error
terrain-operation-ids-present
All operations must have operationId defined
$.paths.*[get,post,put,patch,delete]
warn
terrain-operation-id-pascal-case
Operation IDs should use PascalCase
$.paths.*[get,post,put,patch,delete].operationId
info
terrain-secured-paths
Authenticated endpoints should be under /secured prefix
$.paths
warn
terrain-tags-required
Each operation should have at least one tag
$.paths.*[get,post,put,patch,delete]
warn
terrain-parameter-descriptions
Parameters should have descriptions
$.paths..parameters[*]
warn
terrain-json-responses
Endpoints should return application/json responses
$.paths.*[get,post,put,patch,delete].responses.*.content
info
terrain-jwt-auth
Terrain uses JWT bearer token or X-Iplant-De-Jwt header authentication
$.components.securitySchemes.*
warn
terrain-kebab-path-params
Path parameter names should use kebab-case
$.paths..parameters[?(@.in == 'path')].name