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
View Rules File View on GitHub

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

Raw ↑
version: '0.1'
generated: '2026-09-01'
method: derived
source: openapi/mcmaster-experts-openapi.yml
note: >-
  Spectral ruleset derived from the probed McMaster Experts contract. Built-in Spectral functions
  only. These rules encode the gaps found while probing so a future pass can tell whether McMaster
  has closed them, not so this repo can claim McMaster met them.
formats: [ oas3_1 ]
extends: [[ spectral:oas, recommended ]]
rules:
  mcmaster-operator-declared:
    description: Every McMaster contract must declare who operates the thing it describes.
    message: 'info.x-operator is required — institution, tenant, vendor, registry or federation.'
    severity: error
    given: $.info
    then:
      field: x-operator
      function: truthy
  mcmaster-provenance-declared:
    description: An unmarked artifact is credited to the institution as if they published it.
    message: 'info.x-provenance.method is required.'
    severity: error
    given: $.info.x-provenance
    then:
      field: method
      function: truthy
  mcmaster-server-is-institution-host:
    description: A server URL must sit under a McMaster registrable domain, or the operator is not institution.
    message: 'servers[].url must be under mcmaster.ca.'
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://[a-z0-9.-]*mcmaster\.ca'
  mcmaster-no-structured-error:
    description: >-
      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.
    message: 'Operation defines no 400 response; the live service answers a bad parameter with 500.'
    severity: warn
    given: $.paths[*].get.responses
    then:
      field: '400'
      function: truthy
  mcmaster-rate-limit-undocumented:
    description: >-
      The service throttles to 503 with no Retry-After and no published limit. Every operation should
      say so until McMaster documents one.
    message: 'Operation should document the 503 throttling behaviour.'
    severity: warn
    given: $.paths[*].get.responses
    then:
      field: '503'
      function: truthy
  mcmaster-personal-data-flagged:
    description: A schema property carrying personal data must be flagged so no downstream artifact packages it.
    message: 'macid is personal data and must carry x-personal-data.'
    severity: error
    given: $.components.schemas.Person.properties.macid
    then:
      field: x-personal-data
      function: truthy
  mcmaster-operation-described:
    description: Probed operations must say what was observed, since no vendor documentation exists to fall back on.
    message: 'Operation requires a description.'
    severity: error
    given: $.paths[*].get
    then:
      field: description
      function: truthy

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/mcmaster-experts-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.