Trimble Agriculture · API Governance Rules
Trimble Agriculture API Rules
Spectral linting rules defining API design standards and conventions for Trimble Agriculture.
11 Rules
error 5
warn 4
Rule Categories
trimble
Rules
error
trimble-ag-operation-id-required
All operations must have a camelCase operationId
$.paths[*][get,post,put,delete,patch]
warn
trimble-ag-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get,post,put,delete,patch].operationId
warn
trimble-ag-organization-context
All resource paths must be scoped under an organizationId
$.paths[*]~
error
trimble-ag-path-params-required
Path parameters must be marked as required
$.paths[*][*].parameters[?(@.in == 'path')]
hint
trimble-ag-uuid-format
ID parameters should specify uuid format
$.paths[*][*].parameters[?(@.name =~ /Id$/)]
warn
trimble-ag-operation-tags-required
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
error
trimble-ag-response-200-required
All operations must define a 200 success response
$.paths[*][get,post,put,delete,patch].responses
error
trimble-ag-bearer-auth
API must use bearer authentication
$.components.securitySchemes[*]
hint
trimble-ag-geojson-geometry
Boundary and geometry fields should reference GeoJsonGeometry
$.components.schemas[*].properties[?(@property == 'boundary' || @property == 'geometry')]
error
trimble-ag-post-has-request-body
POST operations must have a request body
$.paths[*].post
warn
trimble-ag-datetime-format
Date-time parameters must specify format date-time
$.paths[*][*].parameters[?(@.name =~ /Date$|Time$/)]