IBM Quantum · API Governance Rules

IBM Quantum API Rules

Spectral linting rules defining API design standards and conventions for IBM Quantum.

4 Rules error 2 warn 2
View Rules File View on GitHub

Rule Categories

ibm

Rules

error
ibm-quantum-path-prefix
All Qiskit Runtime REST endpoints are versioned under /v1.
$.paths
warn
ibm-quantum-snake-case-fields
IBM Quantum REST responses use snake_case property names.
$.components.schemas.*.properties.*~
error
ibm-quantum-bearer-required
All operations require IBM Cloud IAM bearer authentication.
$.paths.*[get,post,put,patch,delete]
warn
ibm-quantum-version-header
Operations should accept the IBM-API-Version header.
$.paths.*[get,post,put,patch,delete].parameters[?(@.in == 'header' && @.name == 'IBM-API-Version')]

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
documentationUrl: https://github.com/api-evangelist/ibm-quantum
overrides: []
functionsDir: ./functions
rules:
  # Operation discipline
  operation-operationId: error
  operation-operationId-unique: error
  operation-tag-defined: error
  operation-summary: error
  operation-description: warn
  operation-tags: error

  # IBM Quantum naming conventions
  ibm-quantum-path-prefix:
    description: All Qiskit Runtime REST endpoints are versioned under /v1.
    given: $.paths
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          patternProperties:
            "^/v1/.*$": true
          additionalProperties: false

  ibm-quantum-snake-case-fields:
    description: IBM Quantum REST responses use snake_case property names.
    given: $.components.schemas.*.properties.*~
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-z0-9_]*$"

  # Security scheme presence
  ibm-quantum-bearer-required:
    description: All operations require IBM Cloud IAM bearer authentication.
    given: $.paths.*[get,post,put,patch,delete]
    severity: error
    then:
      field: security
      function: truthy

  ibm-quantum-version-header:
    description: Operations should accept the IBM-API-Version header.
    given: $.paths.*[get,post,put,patch,delete].parameters[?(@.in == 'header' && @.name == 'IBM-API-Version')]
    severity: warn
    then:
      function: truthy

  # OpenAPI quality bar
  no-empty-servers: error
  contact-properties: warn
  info-license: warn
  oas3-api-servers: error
  oas3-server-not-example.com: error

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/ibm-quantum-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.