Norwegian University of Science and Technology · API Governance Rules
Norwegian University of Science and Technology API Rules
Spectral linting rules defining API design standards and conventions for Norwegian University of Science and Technology.
6 Rules
error 1
warn 4
info 1
Rule Categories
ntnu
Rules
warn
ntnu-info-contact
API info object should provide a contact.
$.info
warn
ntnu-info-description
API info object should have a description.
$.info
error
ntnu-server-defined
At least one server URL should be defined (DataverseNO instance).
$
warn
ntnu-operation-tags
Every operation should be tagged for navigation.
$.paths[*][get,post,put,delete,patch]
info
ntnu-pid-path-naming
Dataverse identifies datasets by persistent id; persistentId query parameter usage is the documented pattern, so prefer it over numeric ids where both exist. This rule flags datafile/dataset paths for review.
$.paths[?(@property.match(/persistentId/i))]
warn
ntnu-response-envelope
Dataverse native API responses use a top-level status/data envelope; operations should document a 200 response.
$.paths[*][get,post]