DevTools Logo

AsyncAPI Validator

AsyncAPI Spec Validator

Validate AsyncAPI 2.x and 3.x documents, browse channels and messages, and check protocol binding coverage.

Runs in your browser
Try an example

AsyncAPI document (JSON or YAML)

Validation results

Paste an AsyncAPI document to validate it

Syntax errors are located by line. Structural problems are listed with their document path.

About this tool

Paste an AsyncAPI document in YAML or JSON to check it against version-aware structural rules, explore its channels, operations and messages, and see which protocol bindings are present. Validation, $ref resolution and reporting run entirely in your browser — external references are reported but never fetched.

Examples & use cases

Valid AsyncAPI 2.6 document

asyncapi: 2.6.0
info:
  title: User events
  version: 1.0.0
channels:
  user/signedup:
    publish:
      message:
        payload:
          type: object
          required: [id]
          properties:
            id: { type: string }

2.x puts publish and subscribe operations inside each channel. The validator reports a valid badge and lists the channel, operation and payload in the structure tree.

Valid AsyncAPI 3.0 document

asyncapi: 3.0.0
info:
  title: Order events
  version: 1.0.0
channels:
  orders:
    address: orders/created
    messages:
      OrderCreated:
        $ref: '#/components/messages/OrderCreated'
operations:
  receiveOrder:
    action: receive
    channel:
      $ref: '#/channels/orders'

3.x separates channels from operations and requires action plus a channel reference. Local $refs are resolved in-browser for the message summary and binding coverage.

2.x shapes in a 3.0 document

asyncapi: 3.0.0
info:
  title: Broken events
  version: 1.0.0
channels:
  user/signedup:
    publish:
      message:
        payload:
          type: object
operations:
  sendUser:
    message:
      payload:
        type: object

The version/content check pinpoints publish on a 3.x channel and the missing action/channel fields on the operation, with a hint for each fix.

    Examples

    2.x channel with a Kafka binding

    Input
    asyncapi: 2.6.0
    channels:
      user/signedup:
        bindings:
          kafka:
            topic: user-signedup
        publish:
          message:
            payload:
              type: object
    Output
    Valid · channel user/signedup · binding column kafka = Bound

    2.x channel-level bindings count toward coverage alongside operation and message bindings.

    3.x channel without operations

    Input
    asyncapi: 3.0.0
    channels:
      orders:
        address: orders/created
    operations: {}
    Output
    Warning: Channel "orders" has no operation pointing at it.

    The document parses, but generators have no action to emit — flagged as a warning rather than a schema error.

    Local $ref payload

    Input
    payload:
      $ref: '#/components/schemas/User'
    Output
    Payload summary: User → object · 2 properties · required: id

    In-document references are resolved locally so the structure tree still shows the effective schema.

    About this tool

    AsyncAPI Validator checks event-driven API documents against version-aware structural rules for AsyncAPI 2.x and 3.x, entirely in your browser.

    It parses YAML or JSON, resolves in-document $refs, lists findings with document paths and source lines, and builds a browsable tree of servers, channels, operations, messages and schemas.

    A binding coverage matrix shows which Kafka, MQTT, AMQP, WebSocket, HTTP and other protocol bindings are actually present — so you can catch the channels code generators will skip before shipping the spec.

    What this tool does not do

    • Structural checks use a focused subset of the official meta-schemas, not a complete meta-schema validation; extension fields and payload schemas are deliberately left open.
    • 2.0–2.5 documents are routed to the tolerant 2.6 rules rather than exact per-minor dialects.
    • External $refs (HTTP URLs and relative files) are reported but never fetched or checked.
    • The binding matrix covers a fixed set of common protocols; unknown server protocols appear as findings instead of columns.
    • Tree and matrix views render at most 200 entries; use the filter to locate nodes in larger documents.

    How to use this tool

    1. Paste or open a document

      Paste AsyncAPI YAML or JSON into the input panel, load one of the three examples, or open a .yaml/.json file. Nothing is uploaded.

    2. Read the validation list

      Errors, warnings and notes are grouped by severity. Each row shows the document path and, when available, the source line — click it to jump.

    3. Browse the structure

      Open the Structure tab to expand servers, channels, operations and messages. Filter the tree by channel or message name in large documents.

    4. Check binding coverage

      Open the Bindings tab to see a protocol matrix. Select a cell or row to jump to the matching structure node.

    5. Export the report

      Open the Report tab for a Markdown summary of findings, structure counts and coverage, then copy or download it for a pull request.

    Use cases

    CI handoff

    Export the Markdown report alongside a pull request so reviewers see errors, warnings and coverage without running codegen.

    Version migration

    Find 2.x publish/subscribe shapes left behind in a 3.0 document, and 3.x operations accidentally added to a 2.x spec.

    Codegen triage

    Identify channels and messages without protocol bindings — the nodes generators commonly skip.

    Learning AsyncAPI

    Explore the structure of a document and see how servers, channels, operations and messages connect.

    Version routing and checks

    Declared versionWhat is checked
    2.0.0 – 2.6.0Tolerant 2.6 rules: publish/subscribe inside channels; servers use url; operations use operationId and message.
    3.0.0 and newer 3.x3.0 rules: root operations with action + channel $ref; channels use address and a messages map; servers use host.
    Unrecognized / 1.xVersion error with a migration hint; 1.x topics documents get a dedicated note.

    A focused Ajv schema covers the document contract while leaving payload schemas and x- extensions open; heuristics add version-mismatch, duplicate-address, orphan-channel and payload-less-message findings.

    Common mistakes

    Mistake:Putting publish/subscribe inside a 3.x channel.

    Fix:Move the operation to the top-level operations map, set action to send or receive, and point channel at the channel $ref.

    Mistake:Using url in a 3.x server or host in a 2.x server.

    Fix:2.x servers require url; 3.x servers require host. The validator reports the field with a version-specific hint.

    Mistake:Expecting external $refs to be checked.

    Fix:This tool works offline. Inline external references to validate them; otherwise they appear as a warning.

    Mistake:Leaving messages with no payload schema.

    Fix:Add a payload (or headers) so codegen can produce a typed model; a warning marks payload-less messages.

    Mistake:Treating warnings as schema failures.

    Fix:Warnings are legal but unhelpful constructs. The valid badge only reflects errors.

    Frequently asked questions

    What is new in AsyncAPI 3.0 compared with 2.x?

    3.0 separates channels from operations: operations live at the document root with an action (send or receive) and a channel $ref, channels carry an address and a messages map, and servers use host instead of url. 2.x puts publish and subscribe operations inside each channel. The validator flags 2.x shapes found in a 3.0 document and vice versa.

    Why does codegen skip my channel?

    Usually because the channel, its operation or its message has no protocol binding block. The Bindings tab shows a matrix of Kafka, MQTT, AMQP, WebSocket, HTTP and other protocols found in your servers; cells marked None are the nodes code generators may skip. Bindings inherited from traits are counted too.

    Does the tool support YAML as well as JSON?

    Yes. YAML and JSON are both accepted and auto-detected. YAML syntax errors are reported with line, column and a plain-language hint; duplicate JSON keys are reported as a note.

    Can it validate $ref schemas?

    References that start with # are resolved inside the document, so payload summaries and binding coverage still work through chains of local refs. Broken local pointers are reported as errors. External HTTP or file references cannot be fetched offline and are listed as a warning.

    Is my spec uploaded anywhere?

    No. Parsing, schema checks, $ref resolution, tree building and report export all happen in this browser tab. Nothing is sent to a server and no document contents are stored.

    Why is my document valid but still showing warnings?

    Warnings describe legal but unhelpful constructs: duplicate channel addresses, channels with no operations, messages without payload schemas, unused components or unknown protocols. Only errors affect the Valid badge.

    How are binding coverage percentages calculated?

    Each bindable node (channel, operation, message) is a row and each detected server protocol is a column. Coverage is the percentage of cells with a binding block. If no server protocol maps to a known column, a single 'any' column is used based on bindings found in the document.

    Does this validate OpenAPI or Swagger documents?

    No. This tool is for AsyncAPI event-driven contracts. Use the OpenAPI / Swagger editor for REST API documents.

    References & standards