Skip to main content
Version: dev 🚧

avsc_to_pydantic

avsc_to_pydantic​

View source
avsc_to_pydantic(
schema
)

Generate pydantic model from given Avro Schema

Parameters:

NameTypeDescriptionDefault
schemaDict[str, Any]Avro schema in dictionary formatrequired

Returns:

TypeDescription
Type[pydantic.main.BaseModel]Pydantic model class built from given avro schema