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.
11 Rules
error 6
warn 5
Rule Categories
umd
Rules
error
umd-info-title-not-framework-default
info.title must name the service. The harvested contract carries the FastAPI default "FastAPI", which makes the document unattributable once it leaves its host.
$.info
warn
umd-info-version-moved-off-default
info.version must not remain the framework default 0.1.0. UMD's contract has never bumped it, so consumers cannot tell one deployment from another.
$.info
error
umd-servers-absolute
servers[].url must be absolute. The harvested contract declares the relative "/api/libtools", which is only resolvable if you already know the host.
$.servers[*]
error
umd-info-contact-present
info.contact must be present. UMD Libraries publish a contact page on their Open Data site; the contract does not point at it.
$.info
error
umd-operation-has-summary
Every operation needs a human summary; the harvested summaries were method names.
$.paths[*][*]
warn
umd-operation-has-description
Every operation needs a description beyond its summary.
$.paths[*][*]
error
umd-operation-tagged
Every operation must carry at least one tag; the harvested contract declared none.
$.paths[*][*]
error
umd-success-response-typed
A 200 must declare a schema. Eleven of the thirteen harvested operations return an untyped empty schema, so nothing about the payload is contractual.
$.paths[*][*].responses['200'].content['application/json']
warn
umd-not-found-declared
404 must be declared. The service returns {"detail":"Not Found"} for any unknown path and the harvested contract never says so.
$.paths[*][*].responses
warn
umd-parameter-described
Every parameter needs a description. The availability parameter is undocumented, and an empty value returns 500 rather than the declared 422.
$.paths[*][*].parameters[*]
warn
umd-external-docs-present
The contract should point at the Open Data service page that documents it.
$
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.