Samsara · API Governance Rules
Samsara API Rules
Spectral linting rules defining API design standards and conventions for Samsara.
9 Rules
error 1
warn 4
info 4
Rule Categories
samsara
Rules
warn
samsara-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
samsara-operation-id-camel-case
OperationIds must use lowerCamelCase
$.paths[*][*].operationId
warn
samsara-tags-defined
All tags used in operations must be defined in the global tags list
$.paths[*][*].tags[*]
warn
samsara-response-200-schema
All 200 responses should have a schema defined
$.paths[*][*].responses['200'].content[*]
info
samsara-bearer-auth-used
Operations should use the AccessTokenHeader security scheme
$.paths[*][*]
info
samsara-pagination-cursor-pattern
List operations should support cursor-based pagination with 'after' parameter
$.paths[?([email protected](/\{.*\}/))].get.parameters[*]
error
samsara-no-trailing-slash
API paths must not end with a trailing slash
$.paths
info
samsara-path-kebab-case
Path segments must use kebab-case or camelCase (Samsara convention)
$.paths
info
samsara-external-id-support
Resources that support external IDs should document them
$.paths[*][*].description