Maastricht University · API Governance Rules
Maastricht University API Rules
Spectral linting rules defining API design standards and conventions for Maastricht University.
7 Rules
error 3
warn 3
info 1
Rule Categories
maastricht
Rules
error
maastricht-info-title
API info.title must be present and reference the Dataverse API.
$.info
error
maastricht-info-version
API must declare a version (DataverseNL runs Dataverse 6.x).
$.info
warn
maastricht-servers-defined
A servers array should be present so consumers can resolve the DataverseNL base URL.
$
warn
maastricht-server-is-dataversenl
At least one server should point at the DataverseNL host.
$.servers[*].url
info
maastricht-paths-lowercase-api
Dataverse REST paths are namespaced under /access, /admin, /dataverses, /datasets, /search, /info.
$.paths[*]~
warn
maastricht-operation-has-tags
Each operation should carry at least one tag for grouping (Dataverse tags every operation).
$.paths[*][get,put,post,delete,patch]
error
maastricht-operation-has-responses
Each operation must define responses.
$.paths[*][get,put,post,delete,patch]