University of Wisconsin-Madison · API Governance Rules
University of Wisconsin-Madison API Rules
Spectral linting rules defining API design standards and conventions for University of Wisconsin-Madison.
10 Rules
error 4
warn 5
info 1
Rule Categories
uw
Rules
error
uw-oas3-only
Every published contract must be OpenAPI 3.0.x.
error
uw-institution-server
servers[] must resolve under wisc.edu.
warn
uw-contact-required
info.contact must name a UW-Madison team and a wisc.edu address.
warn
uw-jsonapi-envelope
Enterprise integration APIs should use JSON:API resource envelopes.
error
uw-oauth-client-credentials
Gated APIs must declare OAuth2 client-credentials against api.wisc.edu/oauth/token.
warn
uw-scopes-declared
OAuth2 flows should declare the scopes they issue.
warn
uw-license-declared
info.license should be set.
warn
uw-terms-of-service
info.termsOfService should be set.
error
uw-no-dev-host-in-production-catalog
A contract published in the production portal must not declare only a dev server.
info
uw-problem-details
Errors should use RFC 9457 application/problem+json.