Humboldt-Universität zu Berlin · API Governance Rules
Humboldt-Universität zu Berlin API Rules
Spectral linting rules defining API design standards and conventions for Humboldt-Universität zu Berlin.
7 Rules
error 2
warn 3
info 2
Rule Categories
edoc
Rules
error
edoc-info-title-present
API document must declare a title.
$.info
error
edoc-info-version-present
API document must declare a version.
$.info
warn
edoc-server-uses-edoc-base
Server URL should point at the edoc-Server DSpace REST base.
$.servers[*].url
warn
edoc-hal-content-type
DSpace responses are HAL; 200 responses should offer application/hal+json.
$.paths[*].get.responses['200'].content
warn
edoc-operation-id-present
Every operation should define an operationId.
$.paths[*][get,post,put,delete,patch]
info
edoc-uuid-path-param-format
UUID path parameters should declare format uuid.
$.components.parameters.uuid.schema
info
edoc-metadata-map-pattern
Repository objects should carry a metadata map keyed by qualified Dublin Core fields.
$.components.schemas[?(@property.match(/Community|Collection|Item/))].properties