Charles University · API Governance Rules
Charles University API Rules
Spectral linting rules defining API design standards and conventions for Charles University.
6 Rules
error 2
warn 3
info 1
Rule Categories
charles
Rules
error
charles-info-title-required
API must declare an info title.
$.info
error
charles-server-https
Servers must use HTTPS as observed on LINDAT.
$.servers[*].url
warn
charles-operation-id-required
Every operation must have an operationId (LINDAT uses snake_case ids like get_model_collection).
$.paths[*][get,post,put,delete,patch]
warn
charles-operation-id-snake-case
operationIds follow snake_case convention.
$.paths[*][get,post,put,delete,patch].operationId
warn
charles-operation-tagged
Operations are grouped under root, languages, or models tags.
$.paths[*][get,post,put,delete,patch]
info
charles-hal-links-property
Resource schemas expose HAL-style _links navigation.
$.components.schemas[?(@property.match(/Resource$/))].properties