McMaster University · API Governance Rules
McMaster University API Rules
Spectral linting rules defining API design standards and conventions for McMaster University.
7 Rules
error 5
warn 2
Rule Categories
mcmaster
Rules
error
mcmaster-operator-declared
Every McMaster contract must declare who operates the thing it describes.
$.info
error
mcmaster-provenance-declared
An unmarked artifact is credited to the institution as if they published it.
$.info.x-provenance
error
mcmaster-server-is-institution-host
A server URL must sit under a McMaster registrable domain, or the operator is not institution.
$.servers[*].url
warn
mcmaster-no-structured-error
Every operation should define a 400 for a bad parameter value. The live API returns 500 with an empty body instead, which is the defect this rule exists to surface.
$.paths[*].get.responses
warn
mcmaster-rate-limit-undocumented
The service throttles to 503 with no Retry-After and no published limit. Every operation should say so until McMaster documents one.
$.paths[*].get.responses
error
mcmaster-personal-data-flagged
A schema property carrying personal data must be flagged so no downstream artifact packages it.
$.components.schemas.Person.properties.macid
error
mcmaster-operation-described
Probed operations must say what was observed, since no vendor documentation exists to fall back on.
$.paths[*].get
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.