Erasmus University Rotterdam · API Governance Rules
Erasmus University Rotterdam API Rules
Spectral linting rules defining API design standards and conventions for Erasmus University Rotterdam.
6 Rules
error 2
warn 3
info 1
Rule Categories
eur
Rules
error
eur-figshare-server-defined
The API must declare the Figshare v2 base server URL.
$.servers
warn
eur-figshare-operation-tags
Every operation should be tagged (Figshare groups by articles, collections, projects, etc.).
$.paths[*][get,post,put,delete,patch]
error
eur-figshare-operation-responses
Every operation must define at least one response.
$.paths[*][get,post,put,delete,patch].responses
warn
eur-figshare-core-object-has-id
Core resource schemas (Article, Collection, Project, Author) expose an integer id.
$.components.schemas[Article,Collection,Project,Author].properties.id
warn
eur-figshare-doi-is-string
DOI fields are represented as strings.
$.components.schemas[*].properties.doi
info
eur-figshare-url-fields-format
URL-bearing fields should declare a url/uri format.
$.components.schemas[*].properties[url,figshare_url,thumb]