Skip to content

Channel

faststream.asyncapi.schema.Channel #

Bases: BaseModel

A class to represent a channel.

ATTRIBUTE DESCRIPTION
description

optional description of the channel

servers

optional list of servers associated with the channel

bindings

optional channel binding

subscribe

optional operation for subscribing to the channel

publish

optional operation for publishing to the channel

parameters

optional parameters associated with the channel

Configurations

model_config : configuration for the model (only applicable for Pydantic version 2) Config : configuration for the class (only applicable for Pydantic version 1)

description class-attribute instance-attribute #

description = None

servers class-attribute instance-attribute #

servers = None

bindings class-attribute instance-attribute #

bindings = None

subscribe class-attribute instance-attribute #

subscribe = None

publish class-attribute instance-attribute #

publish = None

parameters class-attribute instance-attribute #

parameters = None

model_config class-attribute instance-attribute #

model_config = {'extra': 'allow'}

Config #

extra class-attribute instance-attribute #

extra = 'allow'