University of Amsterdam · API Governance Rules
University of Amsterdam API Rules
Spectral linting rules defining API design standards and conventions for University of Amsterdam.
7 Rules
error 1
warn 4
info 2
Rule Categories
uva
Rules
warn
uva-info-title-triplydb
Info title should identify the TriplyDB API.
$.info.title
error
uva-server-instance-host
Servers must point at the UvA Library LOD instance host.
$.servers[*].url
info
uva-dataset-paths-account-scoped
Dataset operations are scoped under /datasets/{account}/{dataset}.
$.paths[?(@property.match(/^\/datasets\/\{account\}/))]
warn
uva-operations-have-operationid
Every operation should declare an operationId for tooling/codegen.
$.paths[*][get,post,patch,put,delete,head]
warn
uva-operations-have-tags
Operations should be grouped by tag (Datasets, Queries, Services, SPARQL, etc.).
$.paths[*][get,post,patch,put,delete,head]
warn
uva-bearer-auth-defined
A bearer (API token) security scheme should be defined for write/private access.
$.components.securitySchemes
info
uva-error-response-schema
An ErrorResponse schema should exist to standardize error payloads.
$.components.schemas.ErrorResponse