University of Hong Kong · API Governance Rules
University of Hong Kong API Rules
Spectral linting rules defining API design standards and conventions for University of Hong Kong.
6 Rules
error 2
warn 2
info 2
Rule Categories
hku
Rules
warn
hku-info-contact
API info should provide a contact for support.
$.info
error
hku-info-description
API info must have a description.
$.info
error
hku-server-defined
A real server URL must be declared (Figshare API v2 powers HKU DataHub).
$.servers
warn
hku-operation-tags
Every operation should be tagged for discoverability.
$.paths[*][get,post,put,patch,delete]
info
hku-article-has-doi
Article-like response objects observed in the spec carry a doi field.
$.components.schemas.Article.properties
info
hku-path-kebab-or-snake
Figshare paths use snake_case segments (e.g. reserve_doi, page_size).
$.paths[*]~