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
View Rules File View on GitHub

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[*]

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, off]]
formats: [oas3]
documentationUrl: https://github.com/api-evangelist/chalmers-university-of-technology
description: >-
  Spectral ruleset encoding patterns observed in the Chalmers Research API
  (api.research.chalmers.se), converted from its live Swagger 2.0 description.
rules:
  chalmers-info-title:
    description: API must declare an info.title.
    given: $.info
    severity: error
    then:
      field: title
      function: truthy
  chalmers-info-version:
    description: API must declare an info.version.
    given: $.info
    severity: error
    then:
      field: version
      function: truthy
  chalmers-server-https:
    description: Servers must use HTTPS (the API only advertises the https scheme).
    given: $.servers[*].url
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "^https://"
  chalmers-paths-api-prefix:
    description: Resource paths are served under the /api prefix.
    given: $.paths[*]~
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^/api/"
  chalmers-operation-tags:
    description: Every operation should carry at least one tag (e.g. Projects, Organizations).
    given: $.paths[*][get,post,put,delete]
    severity: warn
    then:
      field: tags
      function: truthy
  chalmers-operation-id:
    description: Every operation should declare an operationId.
    given: $.paths[*][get,post,put,delete]
    severity: warn
    then:
      field: operationId
      function: truthy
  chalmers-pascalcase-schemas:
    description: Schema/object property names use PascalCase (e.g. ProjectTitleEng, OrganizationNameEn).
    given: $.components.schemas[*].properties[*]~
    severity: info
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][A-Za-z0-9]*$"
  chalmers-basic-auth:
    description: The API authenticates with HTTP Basic; a basic security scheme should be defined.
    given: $.components.securitySchemes[*]
    severity: info
    then:
      field: scheme
      function: pattern
      functionOptions:
        match: "^basic$"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/chalmers-university-of-technology-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.