Bug: DTOData class not behaving as expected and PydanticDTO class error validation #3620
Open
1 of 4 tasks
Labels
Bug 🐛
This is something that is not working as expected
Description
The DTOData class works as expected when there isn't a nested model. Based on the documentation, the idea of DTOData class is to delay the validation until
create_instance
method is called.This is working as expected for the first level model but calls Pydantic validation on nested models.
Second issue: I am facing an issue when overriding the
ValidationException
class. I am using an extra field in the error response which is not serialised properly. An internal error is raised:URL to code causing the issue
No response
MCVE
Steps to reproduce
For Issue: 1
exception_handlers
from app.For Issue 2:
ValidationException
in the app.Screenshots
"![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"
Logs
No response
Litestar Version
2.9.0final0
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: