Chalmers University of Technology · API Governance Rules
Chalmers University of Technology API Rules
Spectral linting rules defining API design standards and conventions for Chalmers University of Technology.
8 Rules
error 3
warn 3
info 2
Rule Categories
chalmers
Rules
error
chalmers-info-title
API must declare an info.title.
$.info
error
chalmers-info-version
API must declare an info.version.
$.info
error
chalmers-server-https
Servers must use HTTPS (the API only advertises the https scheme).
$.servers[*].url
warn
chalmers-paths-api-prefix
Resource paths are served under the /api prefix.
$.paths[*]~
warn
chalmers-operation-tags
Every operation should carry at least one tag (e.g. Projects, Organizations).
$.paths[*][get,post,put,delete]
warn
chalmers-operation-id
Every operation should declare an operationId.
$.paths[*][get,post,put,delete]
info
chalmers-pascalcase-schemas
Schema/object property names use PascalCase (e.g. ProjectTitleEng, OrganizationNameEn).
$.components.schemas[*].properties[*]~
info
chalmers-basic-auth
The API authenticates with HTTP Basic; a basic security scheme should be defined.
$.components.securitySchemes[*]