Hamad Bin Khalifa University · API Governance Rules
Hamad Bin Khalifa University API Rules
Spectral linting rules defining API design standards and conventions for Hamad Bin Khalifa University.
8 Rules
error 3
warn 5
Rule Categories
hbku
Rules
error
hbku-info-title-present
API document must declare an info.title.
$.info
error
hbku-info-version-present
API document must declare an info.version.
$.info
warn
hbku-servers-declared
A server URL must be declared. The upstream Fanar document omits servers[] and states the base URL only in prose; the working copy in openapi/ repairs that.
$
error
hbku-operation-has-operationid
Every operation should carry an operationId — Fanar does so on all 12.
$.paths[*][get,post,put,patch,delete]
warn
hbku-operation-has-summary
Every operation should carry a summary — Fanar does so on all 12.
$.paths[*][get,post,put,patch,delete]
warn
hbku-operation-documents-401
Every operation is authenticated, so every operation should document a 401. This is the provider's own convention, not an imported best practice.
$.paths[*][get,post,put,patch,delete].responses
warn
hbku-operation-documents-429
The API publishes per-model rate limits and a documented 429; operations should say so.
$.paths[*][get,post,put,patch,delete].responses
warn
hbku-security-scheme-is-bearer
Authentication is HTTP bearer; no other scheme is offered.
$.components.securitySchemes[*]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.