Massey University · API Governance Rules

Massey University API Rules

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

7 Rules error 4 warn 3
View Rules File View on GitHub

Rule Categories

massey

Rules

error
massey-operator-declared
Every Massey OpenAPI must declare who operates the thing it describes.
$
error
massey-provenance-declared
Every Massey OpenAPI must carry x-provenance with a method.
$.x-provenance
error
massey-servers-institution-host
Servers must be under a Massey-operated host.
$.servers[*]
warn
massey-info-contact
Contact information must be present.
$.info
error
massey-operation-ids
Every operation needs an operationId.
$.paths[*][get,post,put,patch,delete]
warn
massey-operation-described
Every operation needs a description recording what was actually probed.
$.paths[*][get,post,put,patch,delete]
warn
massey-security-declared
A gated surface must declare a security scheme.
$.components

Spectral Ruleset

Raw ↑
# method: generated
# x-source-url: https://github.com/api-evangelist/massey
# Spectral ruleset for Massey University's API Evangelist OpenAPI artifacts.
# Provenance: generated 2026-09-01, method: generated, source: API Evangelist university pipeline.
# Built-in Spectral functions only. This ruleset is API Evangelist's, not Massey University's.
extends: []
rules:
  massey-operator-declared:
    description: Every Massey OpenAPI must declare who operates the thing it describes.
    message: 'info-level x-operator is required (institution | tenant | vendor | registry | federation)'
    severity: error
    given: $
    then:
      field: x-operator
      function: truthy
  massey-provenance-declared:
    description: Every Massey OpenAPI must carry x-provenance with a method.
    message: 'x-provenance.method is required - an unmarked artifact is credited to the institution'
    severity: error
    given: $.x-provenance
    then:
      field: method
      function: truthy
  massey-servers-institution-host:
    description: Servers must be under a Massey-operated host.
    message: 'server url must be on massey.ac.nz'
    severity: error
    given: $.servers[*]
    then:
      field: url
      function: pattern
      functionOptions:
        match: '^https://[a-z0-9.-]*massey\.ac\.nz'
  massey-info-contact:
    description: Contact information must be present.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy
  massey-operation-ids:
    description: Every operation needs an operationId.
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy
  massey-operation-described:
    description: Every operation needs a description recording what was actually probed.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: description
      function: truthy
  massey-security-declared:
    description: A gated surface must declare a security scheme.
    severity: warn
    given: $.components
    then:
      field: securitySchemes
      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/massey-openapi-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.