University of Maryland College Park · API Governance Rules
University of Maryland College Park API Rules
Spectral linting rules defining API design standards and conventions for University of Maryland College Park.
7 Rules
error 2
warn 5
Rule Categories
umd
Rules
warn
umd-info-contact
API info should include a contact email (umd.io publishes [email protected]).
$.info
warn
umd-info-license
API info should declare a license (umd.io is MIT licensed).
$.info
error
umd-server-is-umd-io
Servers should point at the official api.umd.io host.
$.servers[*].url
error
umd-operation-has-operationid
Every operation should have an operationId (umd.io names each one).
$.paths[*][get]
warn
umd-get-only
umd.io is a read-only (GETful) API; only GET operations are expected.
$.paths[*]
warn
umd-operation-tagged
Operations should be tagged with one of the known umd.io domains.
$.paths[*][get].tags[*]
warn
umd-error-schema-present
Error responses should reference the shared Error schema.
$.paths[*][get].responses[?(@property=='400' || @property=='404')].content.application/json.schema