Skip to content

Server

faststream.asyncapi.schema.Server #

Bases: BaseModel

A class to represent a server.

ATTRIBUTE DESCRIPTION
url

URL of the server

protocol

protocol used by the server

description

optional description of the server

protocolVersion

optional version of the protocol used by the server

tags

optional list of tags associated with the server

security

optional security requirement for the server

variables

optional dictionary of server variables

bindings

optional server binding

Note

The attributes description, protocolVersion, tags, security, variables, and bindings are all optional.

Configurations

If PYDANTIC_V2 is True, the model configuration is set to allow extra attributes. Otherwise, the Config class is defined with the extra attribute set to "allow".

url instance-attribute #

url

protocol instance-attribute #

protocol

description class-attribute instance-attribute #

description = None

protocolVersion class-attribute instance-attribute #

protocolVersion = None

tags class-attribute instance-attribute #

tags = None

security class-attribute instance-attribute #

security = None

variables class-attribute instance-attribute #

variables = None

bindings class-attribute instance-attribute #

bindings = None

model_config class-attribute instance-attribute #

model_config = {'extra': 'allow'}

Config #

extra class-attribute instance-attribute #

extra = 'allow'