Enhancement: Support configuring Pydantic's .model_validate(..., strict=True
)
#3572
Labels
Enhancement
This is a new feature or request
Description
Any usage of Strict types has no effect on model validation in Litestar. This is due to the explicit strict=Fasle usage in the pydantic v2's validation method.
URL to code causing the issue
litestar/litestar/contrib/pydantic/pydantic_init_plugin.py
Line 51 in 65f01ea
MCVE
Steps to reproduce
Screenshots
""
Logs
No response
Litestar Version
2.9.0
But this is a day 0 bug with Pydantic v2 support afiak.
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 dashboard
The text was updated successfully, but these errors were encountered: