Hong Kong Baptist University · API Governance Rules
Hong Kong Baptist University API Rules
Spectral linting rules defining API design standards and conventions for Hong Kong Baptist University.
6 Rules
error 2
warn 3
info 1
Rule Categories
hkbu
Rules
error
hkbu-info-title-present
API document must declare an info.title.
$.info
error
hkbu-info-version-present
API document must declare an info.version (Pure release version).
$.info
warn
hkbu-server-is-pure-host
Server URL should point at the HKBU Scholars Pure web service host.
$.servers[*]
warn
hkbu-apikey-security-scheme
Pure data endpoints are protected by an api-key header security scheme.
$.components.securitySchemes
warn
hkbu-get-operations-have-200
GET operations should document a 200 response.
$.paths[*].get.responses
info
hkbu-list-results-have-count
ListResult schemas should expose a count property (full count ignoring paging).
$.components.schemas[?(@property.match(/ListResult$/))].properties