You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I got a AvroBaseModel called MyModel that has another AvroBaseModel called NestedModel as a field. I get different schemas when I call MyModel.avro_schema() twice. The field of the second schema corresponding to NestedModel simply refers to itself as type: {'name': 'nested_model', 'type': 'NestedModel'}
To Reproduce
I am using dataclasses-avroschema==0.37.4 and Python 3.10.6
Describe the bug
I got a
AvroBaseModel
calledMyModel
that has anotherAvroBaseModel
calledNestedModel
as a field. I get different schemas when I callMyModel.avro_schema()
twice. The field of the second schema corresponding to NestedModel simply refers to itself as type:{'name': 'nested_model', 'type': 'NestedModel'}
To Reproduce
I am using
dataclasses-avroschema==0.37.4
and Python 3.10.6Code to reproduce the problem:
Expected behavior
MyModel.avro_schema()
should be idempotent, and return the same schema every timeThe text was updated successfully, but these errors were encountered: