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
I get the following error saying that polyfactory generated the value 8569
>>>
pydantic_core._pydantic_core.ValidationError: 1 validation error for Item
dimensions.0
Input should be less than 2000 [type=less_than, input_value=8569, input_type=int]
For further information visit https://errors.pydantic.dev/2.4/v/less_than
Description
When a pydantic model contains a simple annotated attribute, the restrictions from the annotation are used for generating the value.
Example:
However, if I change the Item model to
I get the following error saying that polyfactory generated the value 8569
URL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
"In the format of:
![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)
"Logs
No response
Release Version
2.11.0
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh Litestar dashboard
The text was updated successfully, but these errors were encountered: