Deakin University · API Governance Rules
Deakin University API Rules
Spectral linting rules defining API design standards and conventions for Deakin University.
6 Rules
warn 4
info 2
Rule Categories
deakin
Rules
warn
deakin-info-contact
API info should declare a title and version.
$.info
warn
deakin-servers-figshare-v2
Servers should point at the figshare API v2 base URL.
$.servers[*].url
warn
deakin-operation-summary
Every operation should have a summary describing the action.
$.paths[*][get,post,put,delete,patch]
info
deakin-bearer-oauth-security
figshare uses OAuth2 bearer tokens; a bearer security scheme should exist.
$.components.securitySchemes
warn
deakin-article-identifier
Article objects should expose an integer id and a DOI string.
$.components.schemas.Article.properties
info
deakin-pagination-params
Listing endpoints should support page and page_size query parameters.
$.paths[*].get.parameters[?(@.name == 'page_size')]