National Yang Ming Chiao Tung University · API Governance Rules
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
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
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.