Home
Deliveroo
Deliveroo API Rules
Deliveroo API Rules
Spectral linting rules defining API design standards and conventions for Deliveroo.
36 Rules
error 6
warn 26
info 4
Generated by API Evangelist
Written by API Evangelist tooling for Deliveroo's APIs. It is a starting point, not a ruleset Deliveroo publishes or enforces.
Rule Categories
get
global
info
no
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
warn
servers-expected-domain
Server URLs should be on the deliveroo.com domain.
$.servers[*].url
warn
schema-names-casing
Component schema names should be PascalCase (the dominant convention in this API).
$.components.schemas
warn
operation-documents-400
Operations should document a 400 response (documented on 87% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses
warn
operation-documents-500
Operations should document a 500 response (documented on 100% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description
Spectral Ruleset
# authorship: generated by API Evangelist tooling. Stamped 2026-08-18
# on the file's own generator header (roadmap#64). An unmarked file is
# NOT assumed to be ours -- absence of evidence was never stamped.
x-method: generated
# deliveroo — Spectral ruleset (strengthened)
# Plain Spectral. Existing hand-authored rules preserved; measured rules added
# from this provider's own OpenAPI conventions by strengthen_ruleset.py,
# then self-validated against the spec.
#
# Provenance:
# - servers-https-only: 100% of servers already https (error)
# - servers-expected-domain: 12/12 servers on deliveroo.com
# - path-params-casing: snake @ 100% (n=18)
# - operationid-casing: camel @ 100% (n=15)
# - schema-names-casing: pascal @ 100% (n=14)
# - schema-properties-casing: snake @ 100% (n=31)
# - security: global (root) — NOT emitting operation-security-required
# - operation-documents-400: 87% adherence
# - operation-documents-500: 100% adherence
# - pagination params observed: ['page', 'per_page']
# - merge: kept 31 existing, added 5 measured, upgraded 0
# - added: servers-expected-domain, schema-names-casing, operation-documents-400, operation-documents-500, no-empty-descriptions
extends:
- spectral:oas
rules:
info-title-deliveroo-prefix:
description: API title should start with "Deliveroo".
severity: warn
given: $.info.title
then:
function: pattern
functionOptions:
match: ^Deliveroo
info-description-required:
description: API must have a non-trivial description.
severity: warn
given: $.info
then:
field: description
function: truthy
info-version-required:
description: API must declare a version.
severity: error
given: $.info
then:
field: version
function: truthy
info-contact-required:
description: API should declare a contact.
severity: warn
given: $.info
then:
field: contact
function: truthy
openapi-version-303:
description: Specs should target OpenAPI 3.0.3.
severity: warn
given: $.openapi
then:
function: pattern
functionOptions:
match: ^3\.0\.3$
servers-defined:
description: Servers must be defined.
severity: error
given: $
then:
field: servers
function: truthy
servers-https-only:
description: Server URLs must use HTTPS.
severity: error
given: $.servers[*].url
then:
function: pattern
functionOptions:
match: ^https://
server-description-required:
description: Each server should have a description.
severity: warn
given: $.servers[*]
then:
field: description
function: truthy
path-no-trailing-slash:
description: Paths must not end with a trailing slash.
severity: warn
given: $.paths
then:
field: '@key'
function: pattern
functionOptions:
notMatch: .+/$
path-kebab-case-segments:
description: Static path segments should be lowercase (kebab/snake), not camelCase.
severity: warn
given: $.paths
then:
field: '@key'
function: pattern
functionOptions:
notMatch: '[A-Z]'
path-versioned:
description: Paths should carry a version segment (e.g. /v1/ or /v2/).
severity: info
given: $.paths
then:
field: '@key'
function: pattern
functionOptions:
match: /v[0-9]+/
operation-operationid-required:
description: Every operation must have an operationId.
severity: error
given: $.paths[*][get,post,put,patch,delete]
then:
field: operationId
function: truthy
operation-operationid-camel-case:
description: operationId should be camelCase.
severity: warn
given: $.paths[*][get,post,put,patch,delete].operationId
then:
function: pattern
functionOptions:
match: ^[a-z][a-zA-Z0-9]*$
operation-summary-required:
description: Every operation must have a summary.
severity: warn
given: $.paths[*][get,post,put,patch,delete]
then:
field: summary
function: truthy
operation-summary-deliveroo-prefix:
description: Operation summaries should begin with "Deliveroo".
severity: warn
given: $.paths[*][get,post,put,patch,delete].summary
then:
function: pattern
functionOptions:
match: '^Deliveroo '
operation-description-required:
description: Every operation should have a description.
severity: warn
given: $.paths[*][get,post,put,patch,delete]
then:
field: description
function: truthy
operation-tags-required:
description: Every operation must have at least one tag.
severity: warn
given: $.paths[*][get,post,put,patch,delete]
then:
field: tags
function: truthy
operation-microcks-extension:
description: Operations should declare x-microcks-operation for mock compatibility.
severity: info
given: $.paths[*][get,post,put,patch,delete]
then:
field: x-microcks-operation
function: truthy
parameter-description-required:
description: Every parameter must have a description.
severity: warn
given: $.paths[*][*].parameters[*]
then:
field: description
function: truthy
parameter-snake-case:
description: Parameter names should be snake_case.
severity: warn
given: $.paths[*][*].parameters[*].name
then:
function: pattern
functionOptions:
match: ^[a-z][a-z0-9_]*$
parameter-schema-typed:
description: Every parameter must declare a schema with a type.
severity: warn
given: $.paths[*][*].parameters[*].schema
then:
field: type
function: truthy
request-body-json:
description: Request bodies should offer application/json content.
severity: warn
given: $.paths[*][post,put,patch].requestBody.content
then:
field: application/json
function: truthy
response-success-defined:
description: Each operation must define at least one 2xx response.
severity: error
given: $.paths[*][get,post,put,patch,delete].responses
then:
function: schema
functionOptions:
schema:
type: object
anyOf:
- required:
- '200'
- required:
- '201'
- required:
- '204'
response-description-required:
description: Each response must have a description.
severity: warn
given: $.paths[*][*].responses[*]
then:
field: description
function: truthy
response-auth-error-defined:
description: Authenticated operations should document a 401 response.
severity: info
given: $.paths[*][get,post,put,patch,delete].responses
then:
field: '401'
function: truthy
schema-property-snake-case:
description: Schema property names should be snake_case.
severity: warn
given: $.components.schemas[*].properties
then:
field: '@key'
function: pattern
functionOptions:
match: ^[a-z][a-z0-9_]*$
schema-property-typed:
description: Schema properties should declare a type.
severity: info
given: $.components.schemas[*].properties[*]
then:
function: truthy
global-security-defined:
description: A global security requirement must be defined.
severity: warn
given: $
then:
field: security
function: truthy
security-scheme-bearer:
description: A bearer security scheme should be defined for OAuth tokens.
severity: warn
given: $.components.securitySchemes
then:
field: bearerAuth
function: truthy
tag-title-case:
description: Tag names should be Title Case.
severity: warn
given: $.tags[*].name
then:
function: pattern
functionOptions:
match: ^[A-Z]
get-no-request-body:
description: GET operations must not declare a request body.
severity: error
given: $.paths[*].get
then:
field: requestBody
function: falsy
servers-expected-domain:
description: Server URLs should be on the deliveroo.com domain.
severity: warn
given: $.servers[*].url
then:
function: pattern
functionOptions:
match: deliveroo\.com
schema-names-casing:
description: Component schema names should be PascalCase (the dominant convention in this API).
severity: warn
given: $.components.schemas
then:
field: '@key'
function: casing
functionOptions:
type: pascal
operation-documents-400:
description: Operations should document a 400 response (documented on 87% of this API's operations).
severity: warn
given: $.paths[*][get,post,put,patch,delete].responses
then:
field: '400'
function: truthy
operation-documents-500:
description: Operations should document a 500 response (documented on 100% of this API's operations).
severity: warn
given: $.paths[*][get,post,put,patch,delete].responses
then:
field: '500'
function: truthy
no-empty-descriptions:
description: Descriptions must not be empty strings.
severity: warn
given: $..description
then:
function: truthy
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/deliveroo-spectral-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms .
A second provider on the same verified email joins the account you already have.