University of Cape Town · API Governance Rules
University of Cape Town API Rules
Spectral linting rules defining API design standards and conventions for University of Cape Town.
8 Rules
error 2
warn 6
Rule Categories
uct
Rules
warn
uct-info-contact
API info object should include a contact.
$.info
warn
uct-info-description
API info object should include a description.
$.info
error
uct-https-servers
All servers must use HTTPS (UCT public APIs are HTTPS-only).
$.servers[*].url
error
uct-operation-operationid
Every operation must declare an operationId.
$.paths[*][get,post,put,patch,delete]
warn
uct-operation-summary
Every operation should have a summary.
$.paths[*][get,post,put,patch,delete]
warn
uct-operation-tags
Every operation should be tagged.
$.paths[*][get,post,put,patch,delete]
warn
uct-resource-has-id
Catalog and repository objects expose a stable integer id.
$.components.schemas[?(@property.match(/Article$|Study$|Collection$|Project$/))].properties
warn
uct-doi-as-string
DOI fields should be modeled as strings.
$.components.schemas[*].properties.doi