AMQP · API Governance Rules

AMQP API Rules

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

9 Rules error 2 warn 5 info 2
View Rules File View on GitHub

Rule Categories

asyncapi

Rules

error
asyncapi-info-description
AsyncAPI info must have a description
$.info
error
asyncapi-info-version
AsyncAPI info must have a version
$.info
warn
asyncapi-servers-defined
At least one server must be defined
$
warn
asyncapi-channel-description
Every channel should have a description
$.channels[*]
warn
asyncapi-message-description
Every message should have a description
$.components.messages[*]
info
asyncapi-schema-type
Schema properties should have explicit types
$.components.schemas[*].properties[*]
info
asyncapi-amqp-exchange-type
AMQP bindings should define exchange type
$.channels[*].bindings.amqp.exchange
warn
asyncapi-operation-id
Operations should have an operationId
$.channels[*].messages[*]
warn
asyncapi-no-empty-description
Descriptions must not be empty
$..description

Spectral Ruleset

Raw ↑
rules:
  # INFO / METADATA
  asyncapi-info-description:
    description: AsyncAPI info must have a description
    severity: error
    given: "$.info"
    then:
      field: description
      function: truthy

  asyncapi-info-version:
    description: AsyncAPI info must have a version
    severity: error
    given: "$.info"
    then:
      field: version
      function: truthy

  asyncapi-servers-defined:
    description: At least one server must be defined
    severity: warn
    given: "$"
    then:
      field: servers
      function: truthy

  asyncapi-channel-description:
    description: Every channel should have a description
    severity: warn
    given: "$.channels[*]"
    then:
      field: description
      function: truthy

  asyncapi-message-description:
    description: Every message should have a description
    severity: warn
    given: "$.components.messages[*]"
    then:
      field: description
      function: truthy

  asyncapi-schema-type:
    description: Schema properties should have explicit types
    severity: info
    given: "$.components.schemas[*].properties[*]"
    then:
      field: type
      function: truthy

  asyncapi-amqp-exchange-type:
    description: AMQP bindings should define exchange type
    severity: info
    given: "$.channels[*].bindings.amqp.exchange"
    then:
      field: type
      function: truthy

  asyncapi-operation-id:
    description: Operations should have an operationId
    severity: warn
    given: "$.channels[*].messages[*]"
    then:
      field: name
      function: truthy

  asyncapi-no-empty-description:
    description: Descriptions must not be empty
    severity: warn
    given: "$..description"
    then:
      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/amqp-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.