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 am trying to create model and add constraint on the value. This works well and does validation when user try to create the instance but default fake data generation do not respect the constraint because it uses fake.pyint() to generate the integer value
To Reproduce
import pydantic
from dataclasses_avroschema.pydantic import AvroBaseModel
class Test(AvroBaseModel):
balance: pydantic.conint(ge=30000000)
class Meta:
namespace = "com.foo"
print(Test.fake())
Expected behavior
It should generate valid fake value
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to create model and add constraint on the value. This works well and does validation when user try to create the instance but default fake data generation do not respect the constraint because it uses fake.pyint() to generate the integer value
To Reproduce
import pydantic
from dataclasses_avroschema.pydantic import AvroBaseModel
class Test(AvroBaseModel):
balance: pydantic.conint(ge=30000000)
print(Test.fake())
Expected behavior
It should generate valid fake value
The text was updated successfully, but these errors were encountered: