Server
faststream.specification.asyncapi.v3_0_0.schema.Server
#
Bases: BaseModel
A class to represent a server.
ATTRIBUTE | DESCRIPTION |
---|---|
host |
host of the server
|
pathname |
pathname 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
|
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".