Rollbar · API Governance Rules
Rollbar API Rules
Spectral linting rules defining API design standards and conventions for Rollbar.
10 Rules
error 3
warn 6
info 1
Rule Categories
rollbar
Rules
error
rollbar-has-access-token-security
All Rollbar API operations must reference the accessToken security scheme
$.paths[*][get,post,put,patch,delete]
warn
rollbar-operation-id-camel-case
Rollbar operationIds use camelCase naming
$.paths[*][get,post,put,patch,delete].operationId
error
rollbar-operation-summary-required
All Rollbar API operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
rollbar-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
rollbar-consistent-path-structure
Rollbar path segments must use lowercase kebab-case
$.paths[*]~
warn
rollbar-tags-defined
All operations should reference defined tags
$.paths[*][get,post,put,patch,delete]
warn
rollbar-success-response-schema
Successful responses should include a schema
$.paths[*][get,post,put,patch,delete].responses[?(@property >= '200' && @property < '300')]
info
rollbar-error-responses-defined
Operations should document standard error responses
$.paths[*][get,post,put,patch,delete]
error
rollbar-request-body-content-type
Request bodies must specify application/json content type
$.paths[*][post,put,patch].requestBody.content
warn
rollbar-info-complete
API info section must include contact and terms
$.info