Stacker · API Governance Rules
Stacker API Rules
Spectral linting rules defining API design standards and conventions for Stacker.
7 Rules
error 3
warn 4
Rule Categories
stacker
Rules
error
stacker-operation-ids
All operations must have an operationId in camelCase
$.paths[*][*]
error
stacker-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
stacker-trailing-slash
All Stacker API paths end with a trailing slash
$.paths[*]~
warn
stacker-header-auth
Operations must use IntegrationKey security scheme
$.paths[*][*]
error
stacker-response-200-or-201
All operations must have a 200 or 201 success response
$.paths[*][*].responses
warn
stacker-object-sid-path-param
Paths using object SID must name the parameter object_sid
$.paths[*][*].parameters[?(@.in=='path')]
warn
stacker-content-type-json
Request bodies must use application/json
$.paths[*][*].requestBody.content