Schema
faststream.asyncapi.schema.Schema #
Bases: BaseModel
A class to represent a schema.
ATTRIBUTE | DESCRIPTION |
---|---|
asyncapi | version of the async API
|
id | optional ID
|
defaultContentType | optional default content type
|
info | information about the schema
|
servers | optional dictionary of servers
|
channels | dictionary of channels
|
components | optional components of the schema
|
tags | optional list of tags
|
externalDocs | optional external documentation
|
METHOD | DESCRIPTION |
---|---|
to_jsonable | Convert the schema to a JSON-serializable object. |
to_json | Convert the schema to a JSON string. |
to_yaml | Convert the schema to a YAML string. |