McGill University · API Governance Rules
McGill University API Rules
Spectral linting rules defining API design standards and conventions for McGill University.
8 Rules
error 5
warn 3
Rule Categories
mcgill
Rules
error
mcgill-info-title-present
API document must declare a title.
$.info
error
mcgill-info-version-present
API document must declare a version.
$.info
error
mcgill-operator-declared
Every McGill contract must declare x-operator on info, so a vendor or tenant surface can never be read as institution-operated engineering.
$.info
error
mcgill-server-is-institution-owned
The server URL must be a host under McGill's own registrable domain. A contract based on a vendor host does not belong in this repo.
$.servers[*]
warn
mcgill-operation-id-present
Every operation should carry an operationId.
$.paths[*][get,post,put,delete]
warn
mcgill-operation-tagged
Every operation should be tagged.
$.paths[*][get,post,put,delete]
warn
mcgill-operation-described
Every operation must carry a description; McGill's surfaces have no developer portal behind them, so the contract is the only documentation.
$.paths[*][get,post,put,delete]
error
mcgill-observed-status-documented
Every operation must document at least one response status.
$.paths[*][get,post,put,delete]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.