Seoul National University · API Governance Rules
Seoul National University API Rules
Spectral linting rules defining API design standards and conventions for Seoul National University.
10 Rules
error 7
warn 3
Rule Categories
snu
Rules
error
snu-institution-owned-server
Every server in an SNU contract must sit under snu.ac.kr. This is the operator check: a contract saved under this institution whose server points at a vendor host is a misattribution, and it is the specific defect this profile exists to prevent.
$.servers[*].url
error
snu-servers-https-only
Server URLs must use HTTPS. KOSSDA's own OAI-PMH Identify response advertises http://kossda.snu.ac.kr/oai/request; a harvester that follows the advertised baseURL leaves TLS. Contracts in this repo must not repeat that.
$.servers[*].url
error
snu-operation-id-required
Every operation must carry an operationId so it can be referenced by tooling.
$.paths[*][get,post,put,patch,delete]
error
snu-operation-tagged
Every operation must carry at least one tag.
$.paths[*][get,post,put,patch,delete]
error
snu-contact-is-institutional
info.contact.email must be an snu.ac.kr address. A contract whose contact belongs to a vendor is the vendor's contract, whatever the filename says.
$.info.contact.email
error
snu-info-description-required
info.description must be present and substantial. Every contract here is derived from probing rather than from a published SNU specification, and the description is where that provenance and its limits are stated.
$.info
warn
snu-response-examples-required
Probed contracts must ship a captured example. Nothing in this repository is credited to SNU on assertion alone.
$.paths[*][get].responses[*].content[application/xml,application/atom+xml,application/opensearchdescription+xml]
error
snu-oai-verb-parameter-enumerated
An OAI-PMH operation's `verb` parameter must be an explicit enum. OAI-PMH returns HTTP 200 for badVerb, so an unconstrained verb parameter produces silent failures a status-code check will never catch.
$.paths[*][get].parameters[?(@.name == 'verb')].schema
warn
snu-oai-error-schema-present
Any contract describing an OAI-PMH surface must define the protocol error shape, because those errors arrive with HTTP status 200.
$.components.schemas
warn
snu-no-license-fabrication
SNU states no licence on any public surface. Contracts here must say so with NOASSERTION rather than assert a licence the institution never granted.
$.info.license.identifier