avsc_to_pydantic
avsc_to_pydantic​
View sourceavsc_to_pydantic(
schema
)
Generate pydantic model from given Avro Schema
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema | Dict[str, Any] | Avro schema in dictionary format | required |
Returns:
| Type | Description |
|---|---|
Type[pydantic.main.BaseModel] | Pydantic model class built from given avro schema |