Imperial College London · API Governance Rules
Imperial College London API Rules
Spectral linting rules defining API design standards and conventions for Imperial College London.
6 Rules
error 3
warn 2
info 1
Rule Categories
spiral
Rules
error
spiral-info-version-present
API info must declare a version (DSpace release).
$.info
warn
spiral-server-uses-server-api-base
Servers should use the DSpace /server/api base path.
$.servers[*].url
error
spiral-operations-have-operationid
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
spiral-uuid-path-params-are-uuid-format
Path parameters named uuid must declare format uuid.
$.paths[*][*].parameters[?(@.in=='path' && @.name=='uuid')].schema
info
spiral-responses-are-hal-json
200 responses should be served as application/hal+json (DSpace HAL).
$.paths[*][get].responses.200.content
error
spiral-metadata-value-shape
A metadataValue object must always carry a value field.
$.components.schemas.MetadataValue