University of Bath · API Governance Rules
University of Bath API Rules
Spectral linting rules defining API design standards and conventions for University of Bath.
6 Rules
error 2
warn 3
Rule Categories
bath
Rules
error
bath-pure-api-key-security-defined
A reusable "api-key" security scheme must be declared.
$.components.securitySchemes
warn
bath-pure-server-ws-api
Server URL should be the Pure /ws/api base path.
$.servers[*].url
warn
bath-pure-operationid-snake-case
operationId should use Pure's snake/underscore convention (e.g. person_list).
$.paths[*][get,post,put,delete].operationId
hint
bath-pure-list-paging-params
List operations should document size/offset paging.
$.paths[?(@property.match(/s$/))].get.parameters[*].name
warn
bath-pure-operation-tagged
Each operation should be tagged with its Pure content family.
$.paths[*][get,post,put,delete]
error
bath-pure-info-description
API info must carry a description.
$.info