Starbucks · API Governance Rules
Starbucks API Rules
Spectral linting rules defining API design standards and conventions for Starbucks.
18 Rules
error 6
warn 12
Rule Categories
starbucks
Rules
warn
starbucks-operation-ids-camel-case
Operation IDs must use camelCase naming convention
$.paths[*][*].operationId
warn
starbucks-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
starbucks-api-versioned-paths
All API paths must be versioned with /v1/ prefix
$.paths
error
starbucks-bearer-auth-required
All operations must use Bearer token authentication
$.paths[*][*]
error
starbucks-get-operations-200
GET operations must define a 200 response
$.paths[*].get
warn
starbucks-post-operations-201
POST create operations should return 201 Created
$.paths[*].post
error
starbucks-unauthorized-response
All operations must define a 401 Unauthorized response
$.paths[*][*]
warn
starbucks-rate-limit-response
All operations must define a 429 Too Many Requests response
$.paths[*][*]
warn
starbucks-operation-tags-required
All operations must have at least one tag
$.paths[*][*].tags
warn
starbucks-tags-title-case
All tags must use Title Case
$.paths[*][*].tags[*]
warn
starbucks-path-kebab-case
Path segments must use kebab-case
$.paths
warn
starbucks-no-trailing-slash
Paths must not have a trailing slash
$.paths
error
starbucks-path-parameters-required
Path parameters must be marked as required
$.paths[*][*].parameters[?(@.in=='path')]
warn
starbucks-parameter-descriptions
All parameters must have descriptions
$.paths[*][*].parameters[*].name
warn
starbucks-response-schema-defined
200 responses should define a schema
$.paths[*].get.responses.200.content.application/json
warn
starbucks-info-contact
API must have contact information
$.info
error
starbucks-info-description
API must have a description
$.info
error
starbucks-servers-defined
API must define at least one server
$