Specification models¶
The generator builds a document from these dataclasses, and AsyncAPIConfig accepts them for servers, components and traits. Each model serializes to the AsyncAPI wire format through to_schema, which camel-cases field names and leaves out fields that were never set.
- Document: the root
AsyncAPIobject, info, servers, components and references. - Channels and operations: channels, parameters, operations and replies.
- Messages and schemas: messages, traits, examples and payload schemas.
- Bindings and security: security schemes and protocol bindings.