University of Cambridge · API Governance Rules
University of Cambridge API Rules
Spectral linting rules defining API design standards and conventions for University of Cambridge.
7 Rules
error 3
warn 3
info 1
Rule Categories
cam
Rules
error
cam-info-title
API must declare an info.title.
$.info
error
cam-info-version
API must declare an info.version.
$.info
error
cam-servers-defined
At least one server URL must be defined.
$.servers
warn
cam-server-https
Lookup servers should use HTTPS (observed pattern in the published spec).
$.servers[*].url
warn
cam-operation-id
Every operation should carry an operationId (e.g. Person_get, Group_allGroups).
$.paths[*][get,post,put,delete]
warn
cam-operation-tags
Operations should be tagged by resource (person, institution, group, attribute).
$.paths[*][get,post,put,delete]
info
cam-result-wrapper
JSON responses are wrapped in a top-level "result" container per the Lookup/Ibis convention.
$.paths[*][get,post,put,delete].responses.200.content.application/json.schema.properties