Utrecht University · API Governance Rules

Utrecht University API Rules

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

8 Rules error 1 warn 6 info 1
View Rules File View on GitHub

Rule Categories

yoda

Rules

warn
yoda-info-contact
Yoda API spec should declare a contact email.
$.info
error
yoda-server-defined
At least one server URL must be declared.
$.servers
warn
yoda-operations-are-post
Yoda API operations are exposed exclusively as HTTP POST.
$.paths[*]
warn
yoda-operation-has-summary
Every Yoda operation should carry a summary.
$.paths[*].post
warn
yoda-operation-tagged
Every Yoda operation should be tagged to its functional area (folder, vault, group, datarequest, etc.).
$.paths[*].post
info
yoda-result-envelope
Successful responses should use the standard status/status_info/data envelope.
$.paths[*].post.responses.200.content.application/json.schema.properties
warn
yoda-error-responses
Operations should document 400 and 500 error responses.
$.paths[*].post.responses
warn
yoda-security-required
Yoda API requires cookie or basic authentication.
$

Spectral Ruleset

Raw ↑
# Derived from the Yoda OpenAPIs in this repo (openapi/_original/utrecht-yoda-core.yaml and utrecht-yoda-datarequest.yaml), which are Utrecht University's own generated documents. Not published by Utrecht University.
# x-method: derived
# x-derived-from: openapi/_original/utrecht-yoda-core.yaml
# x-generated: '2026-08-30'
extends: []
formats:
  - oas3
documentationUrl: https://utrechtuniversity.github.io/yoda/design/api/
rules:
  yoda-info-contact:
    description: Yoda API spec should declare a contact email.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy

  yoda-server-defined:
    description: At least one server URL must be declared.
    severity: error
    given: $.servers
    then:
      function: length
      functionOptions:
        min: 1

  yoda-operations-are-post:
    description: Yoda API operations are exposed exclusively as HTTP POST.
    severity: warn
    given: $.paths[*]
    then:
      field: post
      function: truthy

  yoda-operation-has-summary:
    description: Every Yoda operation should carry a summary.
    severity: warn
    given: $.paths[*].post
    then:
      field: summary
      function: truthy

  yoda-operation-tagged:
    description: Every Yoda operation should be tagged to its functional area (folder, vault, group, datarequest, etc.).
    severity: warn
    given: $.paths[*].post
    then:
      field: tags
      function: truthy

  yoda-result-envelope:
    description: Successful responses should use the standard status/status_info/data envelope.
    severity: info
    given: $.paths[*].post.responses.200.content.application/json.schema.properties
    then:
      - field: status
        function: truthy
      - field: status_info
        function: truthy
      - field: data
        function: truthy

  yoda-error-responses:
    description: Operations should document 400 and 500 error responses.
    severity: warn
    given: $.paths[*].post.responses
    then:
      - field: '400'
        function: truthy
      - field: '500'
        function: truthy

  yoda-security-required:
    description: Yoda API requires cookie or basic authentication.
    severity: warn
    given: $
    then:
      field: security
      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/utrecht-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.