Docker · API Governance Rules

Docker — docs rules

Spectral linting rules defining API design standards and conventions for Docker.

3 Rules error 3
Published by Docker Served by the provider at https://github.com/docker/docs/blob/63cc3634e3a27ecb0cfdecba216fa74bf1fdceec/hack/api-docs/validation/rules.yaml; the copy below was fetched from there.
View Rules File View on GitHub

Rule Categories

docker

Rules

error
docker-operation-id
Every operation needs a stable operation ID.
$.paths[*][get,put,post,delete,options,head,patch,trace,query]
error
docker-info-description
Every API needs an overview.
$.info
error
docker-info-version
Every API needs a version identity.
$.info

Spectral Ruleset

Raw ↑
# harvested from https://github.com/docker/docs/blob/63cc3634e3a27ecb0cfdecba216fa74bf1fdceec/hack/api-docs/validation/rules.yaml on 2026-10-09 — a Spectral ruleset published in the provider's own GitHub repository (docker/docs); found by GitHub code search, fetched verbatim
x-method: harvested
x-stamped: 2026-10-09
x-source-url: https://github.com/docker/docs/blob/63cc3634e3a27ecb0cfdecba216fa74bf1fdceec/hack/api-docs/validation/rules.yaml
# Structural and dialect validation run against locked OAI schemas in the Go command.
# Vacuum supplies independently named Docker policy rules with source locations.
rules:
  docker-operation-id:
    description: Every operation needs a stable operation ID.
    severity: error
    given: $.paths[*][get,put,post,delete,options,head,patch,trace,query]
    then:
      field: operationId
      function: truthy
  docker-info-description:
    description: Every API needs an overview.
    severity: error
    given: $.info
    then:
      field: description
      function: truthy
  docker-info-version:
    description: Every API needs a version identity.
    severity: error
    given: $.info
    then:
      field: version
      function: truthy

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/docker-docs-spectral-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.