We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to serialize a simple dataclass i.e.:
class A(AvroBaseModel): a: uuid.UUID = Field(uuid.UUID, description="a simple field")
Pydantic will set the default parameter to PydanticUndefined, but dataclasses-avroschema asserts,
default
PydanticUndefined
dataclasses-avroschema
File "site-packages/dataclasses_avroschema/fields/fields.py", line 728, in validate_default assert isinstance(default, (str, uuid.UUID)), msg
I think this happens in all of the type render methods. Everything seems to work correctly when I leave Field off.
Field
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When trying to serialize a simple dataclass i.e.:
Pydantic will set the
default
parameter toPydanticUndefined
, butdataclasses-avroschema
asserts,I think this happens in all of the type render methods. Everything seems to work correctly when I leave
Field
off.The text was updated successfully, but these errors were encountered: