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".