Michigan State University · API Governance Rules
Michigan State University API Rules
Spectral linting rules defining API design standards and conventions for Michigan State University.
7 Rules
error 2
warn 3
info 2
Rule Categories
msu
Rules
error
msu-info-title-present
API info object must declare a title.
$.info
error
msu-info-version-present
API info object must declare a version.
$.info
warn
msu-server-https
Catalog API servers should be served over HTTPS.
$.servers[*].url
warn
msu-operations-have-200
Every GET operation should define a 200 response (search/record endpoints return SearchResponse).
$.paths[*].get.responses
info
msu-search-response-status-ok
SearchResponse status enum should constrain to OK.
$.components.schemas.SearchResponse.properties.status
warn
msu-record-id-string
Record id should be typed as a string identifier.
$.components.schemas.Record.properties.id
info
msu-paths-kebab-or-flat
Catalog paths use flat lowercase segments (e.g. /search, /record, /web/search); avoid uppercase path segments.
$.paths[*]~