Keio University · API Governance Rules
Keio University API Rules
Spectral linting rules defining API design standards and conventions for Keio University.
12 Rules
error 6
warn 6
Rule Categories
keio
Rules
error
keio-operator-required
Every contract in this repository must declare who operates the thing it describes.
$.info
error
keio-operator-evidence-required
An operator verdict without evidence is an assertion, not a finding.
$.info
error
keio-provenance-required
An unmarked artifact is credited to the institution as though they published it. Every contract must carry generated, method and source.
$.info.x-provenance
error
keio-provenance-method-controlled
The provenance method must come from the controlled vocabulary.
$.info.x-provenance
error
keio-servers-must-be-institutional
A contract saved under this institution's slug must be served from a host the institution owns. Anything else belongs in the vendor's own repository, recorded here only as a relationship.
$.servers[*].url
warn
keio-server-description-required
A server entry should name what it is and who runs it.
$.servers[*]
warn
keio-contact-required
A contract should name a real contact at the operating institution.
$.info
error
keio-operation-id-required
Every operation needs a stable identifier for clients and agents.
$.paths[*][get,put,post,delete,options,head,patch,trace]
warn
keio-operation-description-required
Because no vendor documentation exists behind these contracts, the description is the only documentation a consumer gets.
$.paths[*][get,put,post,delete,options,head,patch,trace]
warn
keio-parameter-description-required
Every parameter must say what it does and, where relevant, which values were actually confirmed.
$.paths[*][*].parameters[*]
warn
keio-response-example-expected
A contract derived from probes should point at the captured response that justifies it. Warning rather than error, because not every response was captured.
$.paths[*][*].responses['200'].content[*]
warn
keio-license-required
State the terms the data is offered under, or the absence of them.
$.info
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.