Skip to content

License

faststream.asyncapi.schema.License #

Bases: BaseModel

A class to represent a license.

ATTRIBUTE DESCRIPTION
name

name of the license

url

URL of the license (optional)

Config

extra : allow additional attributes in the model (PYDANTIC_V2)

name instance-attribute #

name

url class-attribute instance-attribute #

url = None

model_config class-attribute instance-attribute #

model_config = {'extra': 'allow'}

Config #

extra class-attribute instance-attribute #

extra = 'allow'