Skip to content
New issue

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

no validation for condecimal type #803

Open
gurmeetsaran opened this issue Nov 29, 2024 · 0 comments
Open

no validation for condecimal type #803

gurmeetsaran opened this issue Nov 29, 2024 · 0 comments

Comments

@gurmeetsaran
Copy link

Describe the bug
When using model with condecimal type , it is not doing any validation when incorrect data is passed

To Reproduce
from dataclasses_avroschema import types
from dataclasses_avroschema.pydantic import AvroBaseModel

class User(AvroBaseModel):
money: types.condecimal(max_digits=3, decimal_places=2)

print(User.fake(money=20111111111111.312222))

Expected behavior
It should result in validation error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant