La Trobe University · API Governance Rules
La Trobe University API Rules
Spectral linting rules defining API design standards and conventions for La Trobe University.
5 Rules
error 1
warn 4
Rule Categories
latrobe
Rules
warn
latrobe-opal-servers-figshare
La Trobe OPAL is served by the Figshare API v2; the server URL should point at https://api.figshare.com/v2.
$.servers[*].url
warn
latrobe-opal-operation-description
Every public OPAL operation should carry a description.
$.paths[*][get,post]
error
latrobe-opal-article-has-doi
Article objects in OPAL are expected to expose a DOI; the Article schema must declare a 'doi' property.
$.components.schemas.Article.properties
warn
latrobe-opal-article-public-html-url
Article objects should expose a public HTML landing URL (url_public_html), which for La Trobe resolves to opal.latrobe.edu.au.
$.components.schemas.Article.properties
warn
latrobe-opal-pagination-page-size-cap
Figshare list/search endpoints cap page_size at 1000; any declared maximum must not exceed this.
$..properties.page_size.maximum