Revolutio · API Governance Rules
Revolutio API Rules
Spectral linting rules defining API design standards and conventions for Revolutio.
8 Rules
error 3
warn 4
info 1
Rule Categories
revolutio
Rules
warn
revolutio-operation-id-camel-case
All operationIds must use camelCase format
$.paths.*.*
warn
revolutio-tags-title-case
All tags must use Title Case
$.tags[*].name
error
revolutio-api-key-required
All GET endpoints must include apiKey as a query parameter
$.paths.*.get.parameters[?(@.name == 'apiKey')]
error
revolutio-coordinates-required
All hazard analysis endpoints must include latitude and longitude parameters
$.paths.*.get
warn
revolutio-get-post-parity
Hazard API endpoints must offer both GET and POST variants
$.paths.*
error
revolutio-response-schema-defined
All 200 responses must define a content schema
$.paths.*.*.responses.200.content
warn
revolutio-no-trailing-slash
API paths must not end with a trailing slash
$.paths
info
revolutio-snake-case-query-params
Query parameter names should use camelCase for consistency with API convention
$.paths.*.*.parameters[?(@.in == 'query')].name