Skip to content

AsyncAPI validator and viewer

Runs in your browser. Nothing is uploaded.

Check an AsyncAPI 2.x or 3.x document against best-practice rules, then read it rendered as event API documentation.

Input

asyncapi: 3.0.0
info:
  title: Streetlights API
  version: 1.0.0
  description: Turn the street lights on and off, and read the light they measure.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
  production:
    host: broker.example.com:1883
    protocol: mqtt
    description: The production broker
defaultContentType: application/json
channels:
  lightMeasured:
    address: smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured
    description: The light measured by a street light
    parameters:
      streetlightId:
        description: The ID of the street light
    messages:
      lightMeasured:
        $ref: "#/components/messages/lightMeasured"
operations:
  receiveLightMeasurement:
    action: receive
    summary: Read the light a street light measured
    channel:
      $ref: "#/channels/lightMeasured"
    messages:
      - $ref: "#/channels/lightMeasured/messages/lightMeasured"
components:
  messages:
    lightMeasured:
      name: lightMeasured
      title: Light measured
      summary: The light a street light measured, in lumens
      payload:
        $ref: "#/components/schemas/lightMeasuredPayload"
  schemas:
    lightMeasuredPayload:
      type: object
      properties:
        lumens:
          type: integer
          minimum: 0
          description: Light intensity measured in lumens
        sentAt:
          type: string
          format: date-time
          description: When the reading was sent

Result

Paste, upload or load a file to start

How it works

Paste, upload or load an AsyncAPI document. The page lints it with the best-practice rules of apigit lint, lists the findings with their lines, and then renders the document with APIGit's docs viewer, in a sandboxed frame below the findings: servers, channels, operations and messages.

The sample is a street-light service in AsyncAPI 3.0 with a few findings left in:

0 errors, 3 warnings, 1 info

line 1   info  asyncapi-latest-version           The latest version is not used. You should update to the "3.1.0" version.
line 2   warn  asyncapi-3-tags                   AsyncAPI document must have non-empty "tags" array.
line 2   warn  asyncapi-info-contact             Info object must have "contact" object.
line 26  warn  asyncapi-3-operation-description  Operation "description" must be present and non-empty string.

No errors: the document is valid. The warnings are what a reader of the docs would miss (who to contact, how the operations group, what an operation does); the info finding points to a newer AsyncAPI version.

What it does not do

  • It does not connect to your broker or send messages; it checks the document only.
  • It uses one rule set. The OWASP, URL-style and documentation-quality rule sets are OpenAPI-only.
  • A $ref to another file of a pasted document is reported as not followed; load the document from its URL to read relative references on the same host.
  • It does not migrate a 2.x document to 3.0; the learn pages show the same API in both versions.
  • Nothing is uploaded, and nothing is kept outside this browser.

This tool and APIGit

This toolWith APIGit
One document, checked and renderedAsyncAPI documents in a Git repository, with Code, Diff, Governance and Preview in the editor
The best-practice rulesThe same rules in the editor's Governance view, beside the document you are changing
Check by handapigit lint events.yaml in CI (CLI 0.6.0 or later) or the GitHub Action
A rendered page in your browserA published docs site with your OpenAPI specs, GraphQL schemas and Markdown guides in one navigation
No agent pagesOne generated Markdown page per AsyncAPI file in a published version's llms.txt and document MCP search

Questions and answers

Which AsyncAPI versions does it check?
AsyncAPI 2.x and 3.x, in YAML or JSON. The rules for each version are applied to the document's own version, as apigit lint does.
Which rules are used?
The best-practice rule set of the APIGit CLI, which applies Spectral's AsyncAPI rules to an AsyncAPI document. The OWASP, URL-style and documentation-quality rule sets are OpenAPI-only.
Is my document uploaded?
No. The checks and the rendering run in your browser. The rendered document is shown in a sandboxed frame that cannot reach the page around it or send requests.
Why does it say the latest version is not used?
The rule asyncapi-latest-version reports a document that is not on the newest AsyncAPI version it knows. It is an info finding, not an error: a 3.0 document is still valid.
Can I share the result?
Yes, for a document loaded from a public URL: Share makes a link that checks and renders it again in the reader's browser. A pasted document has no link; download it instead.
Does APIGit run a mock server for AsyncAPI?
No. APIGit documents event contracts and checks them; it does not run an event broker or an AsyncAPI mock server. Mock servers are for OpenAPI and GraphQL.