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.
7 Rules
error 2
warn 4
info 1
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-server-is-figshare-v2
The production server should be the Figshare API v2 base URL.
$.servers[*].url
warn
hbku-operations-have-operationid
Every operation should declare an operationId.
$.paths[*][get,post,put,delete,patch]
warn
hbku-operations-have-tags
Operations should be grouped with at least one tag.
$.paths[*][get,post,put,delete,patch]
info
hbku-uses-oauth2-security
Write/private operations rely on the OAuth2 security scheme.
$.components.securitySchemes
warn
hbku-article-has-doi
The Article schema should expose a DOI property for citation.
$.components.schemas.Article.properties