Lund University · API Governance Rules
Lund University API Rules
Spectral linting rules defining API design standards and conventions for Lund University.
7 Rules
error 2
warn 3
info 2
Rule Categories
lund
Rules
warn
lund-info-contact
API info object should include a contact pointing at LUP documentation.
$.info
error
lund-info-description
API info object must have a description.
$.info
warn
lund-server-lup-host
Servers should target the LUP search host (lup.lub.lu.se).
$.servers[*].url
error
lund-operation-operationid
Every operation must declare an operationId.
$.paths[*][get,post]
info
lund-search-format-enum
A format parameter should constrain values to the documented set (json, jsonp).
$.paths[*].get.parameters[?(@.name=='format')].schema
info
lund-paging-parameters
List operations should expose start and limit paging parameters as seen in LUP responses.
$.paths['/publication'].get.parameters[*].name
warn
lund-publication-id-required
The Publication schema must require the LUP record identity fields.
$.components.schemas.Publication.required