Monash University · API Governance Rules
Monash University API Rules
Spectral linting rules defining API design standards and conventions for Monash University.
7 Rules
error 1
warn 4
info 2
Rule Categories
monash
Rules
warn
monash-info-contact
API info object should declare a contact (figshare publishes Figshare Support).
$.info
warn
monash-info-license
API info object should declare a license.
$.info
warn
monash-server-figshare-v2
Server URL should target the figshare v2 API base (api.figshare.com/v2).
$.servers[*].url
error
monash-operation-id-required
Every operation should define an operationId.
$.paths[*][get,post,put,delete,patch]
warn
monash-operation-tags
Operations should be grouped with at least one tag (e.g. articles, collections, projects).
$.paths[*][get,post,put,delete,patch]
info
monash-article-id-integer
Identifiers such as the article id are integers in the figshare model.
$.components.schemas.Article.properties.id
info
monash-doi-present
Research-output objects should expose a DOI for persistent identification.
$.components.schemas[Article,Collection].properties