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
$refto 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 tool | With APIGit |
|---|---|
| One document, checked and rendered | AsyncAPI documents in a Git repository, with Code, Diff, Governance and Preview in the editor |
| The best-practice rules | The same rules in the editor's Governance view, beside the document you are changing |
| Check by hand | apigit lint events.yaml in CI (CLI 0.6.0 or later) or the GitHub Action |
| A rendered page in your browser | A published docs site with your OpenAPI specs, GraphQL schemas and Markdown guides in one navigation |
| No agent pages | One 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?
Which rules are used?
Is my document uploaded?
Why does it say the latest version is not used?
Can I share the result?
Does APIGit run a mock server for AsyncAPI?
Learn more
- AsyncAPI linter: every finding apigit lint reports, with its fix
- What is AsyncAPI? A minimal 3.0 document, linted and rendered
- AsyncAPI channels, operations and messages: the 3.0 structure, step by step
- AsyncAPI 2 to 3 migration: the same API in 2.6 and 3.0, side by side
- AsyncAPI documentation: render it locally, then publish it from Git