City University of Hong Kong · API Governance Rules
City University of Hong Kong API Rules
Spectral linting rules defining API design standards and conventions for City University of Hong Kong.
6 Rules
error 2
warn 3
info 1
Rule Categories
cityu
Rules
error
cityu-info-version-present
API info must declare a version (Pure ships e.g. 5.35.1-2).
$.info
error
cityu-api-key-security
The Pure Web Service is gated and must define an api-key security scheme.
$.components.securitySchemes
warn
cityu-server-ws-api-base
Server base path should be the Pure web service base /ws/api.
$.servers[*]
warn
cityu-operation-id-present
Every operation should expose an operationId (Pure uses resource_verb form).
$.paths[*][get,put,post,delete]
warn
cityu-list-results-paged
List result schemas should expose count and pageInformation for paging.
$.components.schemas[?(@property.match(/ListResult$/))].properties
info
cityu-entities-have-uuid
Core Pure entities are identified by a stable uuid.
$.components.schemas.ResearchOutput.properties