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
Pydantic has an underlying bug when using multiple_of with float, and is covered here. To my knowledge, Decimal is more stable in this regard.
To Reproduce
Here is a small program to showcase the instability of float vs. Decimal.
Describe the bug
Pydantic has an underlying bug when using
multiple_of
with float, and is covered here. To my knowledge,Decimal
is more stable in this regard.To Reproduce
Here is a small program to showcase the instability of
float
vs.Decimal
.Example schema:
Will map to:
I think it would be more sane to map to
Decimal
as soon asmultipleOf
is a requirement.The text was updated successfully, but these errors were encountered: