Generate avro schemas from python dataclasses, Pydantic models and Faust Records. Code generation from avro schemas. Serialize/Deserialize python instances with avro schemas.
This adds a flag that changes model_dump to recursively add a "-name" field when the dataclasses_avroschema_include_type field is set to True. This way, recursive pydantic types should have "-name" properly set so that fastavro can properly differentiate between types with the same fields.
This adds a flag that changes
model_dump
to recursively add a"-name"
field when thedataclasses_avroschema_include_type
field is set toTrue
. This way, recursive pydantic types should have"-name"
properly set so that fastavro can properly differentiate between types with the same fields.