Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Flask crashes after Pydantic V2 validator raises ValueError + compatibility issue in default_after_handler #397

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

dror-fs
Copy link
Contributor

@dror-fs dror-fs commented Dec 31, 2024

Fix issue #396

  1. In Pydantic V2 ValidationError, don't include_context which adds the original exception which might not be serializable
  2. Follow the lead of default_before_handler, and adapt default_after_handler to Pydantic V2 ValidationError

@kemingy kemingy merged commit bca3067 into 0b01001001:main Dec 31, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants