Macquarie University · API Governance Rules

Macquarie University API Rules

Spectral linting rules defining API design standards and conventions for Macquarie University.

6 Rules error 5 warn 1
View Rules File View on GitHub

Rule Categories

macquarie

Rules

error
macquarie-operator-declared
The contract must declare who operates the thing it describes.
$.info
error
macquarie-provenance-declared
The contract must carry x-provenance with a method, so it is never credited as institution-published when it was probed.
$.info.x-provenance
error
macquarie-institution-host
Every server must sit on a Macquarie University registrable domain. A vendor host here is the misattribution this repo exists to prevent.
$.servers[*].url
error
macquarie-https-only
No plaintext servers.
$.servers[*].url
error
macquarie-contact-institutional
info.contact.email must be an mq.edu.au address — a vendor support address is the signal that the contract is not the institution's.
$.info.contact.email
warn
macquarie-operation-described
Every operation carries a description, not just a summary.
$.paths[*][get,post,put,patch,delete]

Spectral Ruleset

Raw ↑
# authorship: generated by API Evangelist from this repo's own institution-operated contract.
# x-method: derived
# source: openapi/macquarie-research-portal-oai-pmh-openapi.yml
#
# A small Spectral ruleset expressing the conventions the Macquarie University Research Portal
# OAI-PMH description actually holds to. Built-in Spectral functions only.
formats:
  - oas3
extends:
  - spectral:oas
rules:
  macquarie-operator-declared:
    description: The contract must declare who operates the thing it describes.
    severity: error
    given: $.info
    then:
      field: x-operator
      function: truthy
  macquarie-provenance-declared:
    description: The contract must carry x-provenance with a method, so it is never credited as institution-published when it was probed.
    severity: error
    given: $.info.x-provenance
    then:
      field: method
      function: truthy
  macquarie-institution-host:
    description: Every server must sit on a Macquarie University registrable domain. A vendor host here is the misattribution this repo exists to prevent.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: "^https://[a-z0-9.-]*mq\\.edu\\.au(/|$)"
  macquarie-https-only:
    description: No plaintext servers.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        notMatch: "^http://"
  macquarie-contact-institutional:
    description: info.contact.email must be an mq.edu.au address — a vendor support address is the signal that the contract is not the institution's.
    severity: error
    given: $.info.contact.email
    then:
      function: pattern
      functionOptions:
        match: "@([a-z0-9-]+\\.)*mq\\.edu\\.au$"
  macquarie-operation-described:
    description: Every operation carries a description, not just a summary.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    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/macquarie-oai-pmh-spectral-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.