Skip to content

SubscriberSpec

faststream.specification.schema.SubscriberSpec dataclass #

SubscriberSpec(
    description: str | None,
    operation: Operation,
    bindings: ChannelBinding | None,
    address: str | None,
)

One subscriber, as the specification generators see it.

address is the Address template the endpoint listens on. It is not the key this spec is filed under: that key names the channel and carries the handler name with it, so the two differ for every subscriber.

It is None where the endpoint has no address — AsyncAPI reads an absent one as unknown, which an empty string would not say.

description instance-attribute #

description: str | None

operation instance-attribute #

operation: Operation

bindings instance-attribute #

bindings: ChannelBinding | None

address instance-attribute #

address: str | None