University of Maryland College Park · API Governance Rules

University of Maryland College Park API Rules

Spectral linting rules defining API design standards and conventions for University of Maryland College Park.

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

Rule Categories

umd

Rules

error
umd-info-title-not-framework-default
info.title must name the service. The harvested contract carries the FastAPI default "FastAPI", which makes the document unattributable once it leaves its host.
$.info
warn
umd-info-version-moved-off-default
info.version must not remain the framework default 0.1.0. UMD's contract has never bumped it, so consumers cannot tell one deployment from another.
$.info
error
umd-servers-absolute
servers[].url must be absolute. The harvested contract declares the relative "/api/libtools", which is only resolvable if you already know the host.
$.servers[*]
error
umd-info-contact-present
info.contact must be present. UMD Libraries publish a contact page on their Open Data site; the contract does not point at it.
$.info
error
umd-operation-has-summary
Every operation needs a human summary; the harvested summaries were method names.
$.paths[*][*]
warn
umd-operation-has-description
Every operation needs a description beyond its summary.
$.paths[*][*]
error
umd-operation-tagged
Every operation must carry at least one tag; the harvested contract declared none.
$.paths[*][*]
error
umd-success-response-typed
A 200 must declare a schema. Eleven of the thirteen harvested operations return an untyped empty schema, so nothing about the payload is contractual.
$.paths[*][*].responses['200'].content['application/json']
warn
umd-not-found-declared
404 must be declared. The service returns {"detail":"Not Found"} for any unknown path and the harvested contract never says so.
$.paths[*][*].responses
warn
umd-parameter-described
Every parameter needs a description. The availability parameter is undocumented, and an empty value returns 500 rather than the declared 422.
$.paths[*][*].parameters[*]
warn
umd-external-docs-present
The contract should point at the Open Data service page that documents it.
$

Spectral Ruleset

Raw ↑
# generated: '2026-08-30'
# method: derived
# source: openapi/university-of-maryland-college-park-libraries-website-tools-openapi.yml
# x-operator: institution
#
# Spectral ruleset for the University of Maryland's one institution-operated OpenAPI, the
# UMD Libraries Website Tools API. Every rule below was written against a defect actually
# present in, or a convention actually held by, that contract as harvested on 2026-08-30.
# Built-in Spectral functions only.
rules:
  umd-info-title-not-framework-default:
    description: >-
      info.title must name the service. The harvested contract carries the FastAPI default
      "FastAPI", which makes the document unattributable once it leaves its host.
    message: '{{description}}'
    severity: error
    given: $.info
    then:
      field: title
      function: pattern
      functionOptions:
        notMatch: '^(FastAPI|Swagger|API|OpenAPI)$'

  umd-info-version-moved-off-default:
    description: >-
      info.version must not remain the framework default 0.1.0. UMD's contract has never
      bumped it, so consumers cannot tell one deployment from another.
    message: '{{description}}'
    severity: warn
    given: $.info
    then:
      field: version
      function: pattern
      functionOptions:
        notMatch: '^0\.1\.0$'

  umd-servers-absolute:
    description: >-
      servers[].url must be absolute. The harvested contract declares the relative
      "/api/libtools", which is only resolvable if you already know the host.
    message: '{{description}}'
    severity: error
    given: $.servers[*]
    then:
      field: url
      function: pattern
      functionOptions:
        match: '^https://'

  umd-info-contact-present:
    description: >-
      info.contact must be present. UMD Libraries publish a contact page on their Open Data
      site; the contract does not point at it.
    message: '{{description}}'
    severity: error
    given: $.info
    then:
      field: contact
      function: truthy

  umd-operation-has-summary:
    description: Every operation needs a human summary; the harvested summaries were method names.
    message: '{{description}}'
    severity: error
    given: $.paths[*][*]
    then:
      field: summary
      function: truthy

  umd-operation-has-description:
    description: Every operation needs a description beyond its summary.
    message: '{{description}}'
    severity: warn
    given: $.paths[*][*]
    then:
      field: description
      function: truthy

  umd-operation-tagged:
    description: Every operation must carry at least one tag; the harvested contract declared none.
    message: '{{description}}'
    severity: error
    given: $.paths[*][*]
    then:
      field: tags
      function: length
      functionOptions:
        min: 1

  umd-success-response-typed:
    description: >-
      A 200 must declare a schema. Eleven of the thirteen harvested operations return an
      untyped empty schema, so nothing about the payload is contractual.
    message: '{{description}}'
    severity: error
    given: $.paths[*][*].responses['200'].content['application/json']
    then:
      field: schema
      function: truthy

  umd-not-found-declared:
    description: >-
      404 must be declared. The service returns {"detail":"Not Found"} for any unknown path
      and the harvested contract never says so.
    message: '{{description}}'
    severity: warn
    given: $.paths[*][*].responses
    then:
      field: '404'
      function: truthy

  umd-parameter-described:
    description: >-
      Every parameter needs a description. The availability parameter is undocumented, and an
      empty value returns 500 rather than the declared 422.
    message: '{{description}}'
    severity: warn
    given: $.paths[*][*].parameters[*]
    then:
      field: description
      function: truthy

  umd-external-docs-present:
    description: >-
      The contract should point at the Open Data service page that documents it.
    message: '{{description}}'
    severity: warn
    given: $
    then:
      field: externalDocs
      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/university-of-maryland-college-park-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.