National Yang Ming Chiao Tung University API Rules

Spectral linting rules defining API design standards and conventions for National Yang Ming Chiao Tung University.

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

Rule Categories

nycu

Rules

warn
nycu-info-block
API must declare a title, description and version.
$.info
error
nycu-declares-operator
Every contract in a university repo must declare who operates the thing it describes. A university is a federation of buyers; an undeclared operator is how a vendor's contract gets credited to an institution.
$.info
error
nycu-server-is-institution-host
Servers must point at a host under the university's own registrable domain over HTTPS. A contract served from a vendor host does not belong in this repo.
$.servers[*].url
warn
nycu-terms-of-service
A first-party institutional API should link its terms of service.
$.info
error
nycu-contact-is-institutional
The contact address must be at the university, not at a software vendor.
$.info.contact.email
warn
nycu-operation-ids
Every operation needs an operationId.
$.paths[*][get,put,post,delete,patch]
warn
nycu-scopes-documented
OAuth scopes must carry a description, because NYCU gates two of its three scopes behind an institutional approval process and a caller needs to know which.
$.components.securitySchemes[?(@.type=='oauth2')].flows.authorizationCode.scopes

Spectral Ruleset

Raw ↑
# NYCU — Spectral ruleset for the university's own OpenAPI artifacts.
# generated: '2026-09-01'
# method: generated
# source: openapi/nycu-oauth-api-openapi.yml
# x-operator: institution
#
# Scope note: this ruleset governs the ONE contract National Yang Ming Chiao Tung University
# itself operates — the NYCU OAuth service. It deliberately does not govern the Dataverse or
# DSpace deployments the university runs, because those contracts belong to their software
# projects, not to NYCU.
extends: []
formats:
  - oas3
documentationUrl: https://github.com/api-evangelist/nycu
rules:
  nycu-info-block:
    description: API must declare a title, description and version.
    severity: warn
    given: $.info
    then:
      - field: title
        function: truthy
      - field: description
        function: truthy
      - field: version
        function: truthy
  nycu-declares-operator:
    description: >-
      Every contract in a university repo must declare who operates the thing it describes.
      A university is a federation of buyers; an undeclared operator is how a vendor's contract
      gets credited to an institution.
    severity: error
    given: $.info
    then:
      field: x-operator
      function: truthy
  nycu-server-is-institution-host:
    description: >-
      Servers must point at a host under the university's own registrable domain over HTTPS.
      A contract served from a vendor host does not belong in this repo.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: "^https://[a-z0-9.-]*nycu\\.edu\\.tw"
  nycu-terms-of-service:
    description: A first-party institutional API should link its terms of service.
    severity: warn
    given: $.info
    then:
      field: termsOfService
      function: truthy
  nycu-contact-is-institutional:
    description: The contact address must be at the university, not at a software vendor.
    severity: error
    given: $.info.contact.email
    then:
      function: pattern
      functionOptions:
        match: "@([a-z0-9.-]*\\.)?nycu\\.edu\\.tw$"
  nycu-operation-ids:
    description: Every operation needs an operationId.
    severity: warn
    given: $.paths[*][get,put,post,delete,patch]
    then:
      field: operationId
      function: truthy
  nycu-scopes-documented:
    description: >-
      OAuth scopes must carry a description, because NYCU gates two of its three scopes behind
      an institutional approval process and a caller needs to know which.
    severity: warn
    given: $.components.securitySchemes[?(@.type=='oauth2')].flows.authorizationCode.scopes
    then:
      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/nycu-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.