University of Bristol · API Governance Rules
University of Bristol API Rules
Spectral linting rules defining API design standards and conventions for University of Bristol.
8 Rules
error 6
warn 2
Rule Categories
bristol
Rules
error
bristol-oai-single-base-url
The OAI-PMH contract must declare exactly one base URL, the institution's own host.
$
error
bristol-oai-institution-host
The base URL must sit on the institution's registrable domain, not a vendor host.
$.servers[0].url
error
bristol-oai-operator-declared
The contract must declare who operates the surface it describes.
$.info
error
bristol-oai-provenance-declared
Every artifact must carry provenance; an unmarked artifact is credited to the institution.
$.info.x-provenance
error
bristol-oai-verb-enumerated
The verb parameter must enumerate the six OAI-PMH 2.0 verbs.
$.paths['/'].get.parameters[?(@.name=='verb')].schema
warn
bristol-oai-metadata-prefix-enumerated
metadataPrefix must enumerate only the prefixes observed on this deployment.
$.paths['/'].get.parameters[?(@.name=='metadataPrefix')].schema
error
bristol-oai-500-documented
The observed Identify defect must stay documented; removing it hides a real failure.
$.paths['/'].get.responses
warn
bristol-oai-license-declared
The contract must name the protocol it implements as its licence/spec reference.
$.info.license
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.