License
faststream.specification.asyncapi.v2_6_0.schema.license.License #
Bases: BaseModel
A class to represent a license.
Config
extra : allow additional attributes in the model (PYDANTIC_V2)
from_spec classmethod #
from_spec(license: None) -> None
from_spec(license: License) -> Self
from_spec(license: LicenseDict) -> Self
from_spec(license: dict[str, Any]) -> dict[str, Any]
from_spec(
license: License | LicenseDict | dict[str, Any] | None,
) -> Self | dict[str, Any] | None
Source code in faststream/specification/asyncapi/v2_6_0/schema/license.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |