McGill University · API Governance Rules
McGill University API Rules
Spectral linting rules defining API design standards and conventions for McGill University.
7 Rules
error 3
warn 4
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 (mirrors the Dataverse build version).
$.info
error
mcgill-server-is-borealis
The server URL must be the Borealis Dataverse API base hosting the McGill collection.
$.servers[*]
warn
mcgill-operation-id-present
Every operation should carry the upstream Dataverse operationId.
$.paths[*][get,post,put,delete]
warn
mcgill-operation-tagged
Every operation should be tagged (dataverses, search, info).
$.paths[*][get,post,put,delete]
warn
mcgill-json-responses-only
Public Dataverse responses are JSON; documented 200 responses must offer application/json.
$.paths[*][get,post,put,delete].responses.200.content
warn
mcgill-envelope-status-field
Response envelope schema must expose the Dataverse 'status' field.
$.components.schemas.ApiResponse.properties