Carnegie Mellon University · API Governance Rules
Carnegie Mellon University API Rules
Spectral linting rules defining API design standards and conventions for Carnegie Mellon University.
7 Rules
error 1
warn 5
info 1
Rule Categories
cmu
Rules
warn
cmu-info-contact
API info object should provide contact information.
$.info
warn
cmu-info-description
API info object should have a description.
$.info
error
cmu-servers-https
figshare KiltHub-backing API servers should use HTTPS.
$.servers[*].url
warn
cmu-operation-tags
Every operation should be tagged so endpoints are grouped (articles, collections, etc.).
$.paths[*][get,post,put,delete]
warn
cmu-article-doi-present
Article response schemas should expose a DOI property (persistent identifier convention).
$.components.schemas.Article.properties
warn
cmu-article-public-url
Article schemas should expose a public HTML url for citation/discovery.
$.components.schemas.Article.properties
info
cmu-snake-case-fields
figshare object fields follow snake_case naming.
$.components.schemas.Author.properties.*~