Rely.io · API Governance Rules
Rely.io API Rules
Spectral linting rules defining API design standards and conventions for Rely.io.
10 Rules
error 6
warn 4
Rule Categories
rely
Rules
error
rely-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
rely-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
rely-tags-required
Every operation must have at least one tag
$.paths[*][*]
error
rely-bearer-auth
API must define Bearer authentication
$.components.securitySchemes
error
rely-api-path-prefix
All paths must begin with /api/v1/
$.paths
warn
rely-crud-response-schemas
Successful GET responses must have a schema
$.paths[*].get.responses[200].content.application/json
warn
rely-delete-204
DELETE operations should return 204
$.paths[*].delete.responses
error
rely-post-request-body
POST operations must have a requestBody
$.paths[*].post
warn
rely-path-ids-in-path
Resource ID path parameters should use {id} naming pattern
$.paths[*][*].parameters[?(@.in == 'path')]
error
rely-401-on-all-operations
All protected operations must define a 401 response
$.paths[*][*].responses