Deliveroo · API Governance Rules
Deliveroo API Rules
Spectral linting rules defining API design standards and conventions for Deliveroo.
31 Rules
error 6
warn 21
info 4
Rule Categories
get
global
info
openapi
operation
parameter
path
request
response
schema
security
server
servers
tag
Rules
warn
info-title-deliveroo-prefix
API title should start with "Deliveroo".
$.info.title
warn
info-description-required
API must have a non-trivial description.
$.info
error
info-version-required
API must declare a version.
$.info
warn
info-contact-required
API should declare a contact.
$.info
warn
openapi-version-303
Specs should target OpenAPI 3.0.3.
$.openapi
error
servers-defined
Servers must be defined.
$
error
servers-https-only
Server URLs must use HTTPS.
$.servers[*].url
warn
server-description-required
Each server should have a description.
$.servers[*]
warn
path-no-trailing-slash
Paths must not end with a trailing slash.
$.paths
warn
path-kebab-case-segments
Static path segments should be lowercase (kebab/snake), not camelCase.
$.paths
info
path-versioned
Paths should carry a version segment (e.g. /v1/ or /v2/).
$.paths
error
operation-operationid-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
operation-operationid-camel-case
operationId should be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
warn
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-deliveroo-prefix
Operation summaries should begin with "Deliveroo".
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
Every operation should have a description.
$.paths[*][get,post,put,patch,delete]
warn
operation-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
info
operation-microcks-extension
Operations should declare x-microcks-operation for mock compatibility.
$.paths[*][get,post,put,patch,delete]
warn
parameter-description-required
Every parameter must have a description.
$.paths[*][*].parameters[*]
warn
parameter-snake-case
Parameter names should be snake_case.
$.paths[*][*].parameters[*].name
warn
parameter-schema-typed
Every parameter must declare a schema with a type.
$.paths[*][*].parameters[*].schema
warn
request-body-json
Request bodies should offer application/json content.
$.paths[*][post,put,patch].requestBody.content
error
response-success-defined
Each operation must define at least one 2xx response.
$.paths[*][get,post,put,patch,delete].responses
warn
response-description-required
Each response must have a description.
$.paths[*][*].responses[*]
info
response-auth-error-defined
Authenticated operations should document a 401 response.
$.paths[*][get,post,put,patch,delete].responses
warn
schema-property-snake-case
Schema property names should be snake_case.
$.components.schemas[*].properties
info
schema-property-typed
Schema properties should declare a type.
$.components.schemas[*].properties[*]
warn
global-security-defined
A global security requirement must be defined.
$
warn
security-scheme-bearer
A bearer security scheme should be defined for OAuth tokens.
$.components.securitySchemes
warn
tag-title-case
Tag names should be Title Case.
$.tags[*].name
error
get-no-request-body
GET operations must not declare a request body.
$.paths[*].get