Skip to content

ServerVariable

faststream.asyncapi.schema.servers.ServerVariable #

Bases: BaseModel

A class to represent a server variable.

ATTRIBUTE DESCRIPTION
enum

list of possible values for the server variable (optional)

default

default value for the server variable (optional)

description

description of the server variable (optional)

examples

list of example values for the server variable (optional)

enum class-attribute instance-attribute #

enum = None

default class-attribute instance-attribute #

default = None

description class-attribute instance-attribute #

description = None

examples class-attribute instance-attribute #

examples = None

model_config class-attribute instance-attribute #

model_config = {'extra': 'allow'}

Config #

extra class-attribute instance-attribute #

extra = 'allow'