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: exclude context from pydantic errors #22 #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stevanmilic
Copy link

@stevanmilic stevanmilic commented Oct 8, 2024

Resolves #86

  • Adds include_error_url, include_error_context, include_error_input to validate(...) method; the parameters are propagated to pydantic's errors() method. Providing flexibility in terms of using these values that might break serialization.
  • Adds type hints to account for typed error details dict

@stevanmilic stevanmilic force-pushed the feature/issue-22 branch 2 times, most recently from 437d524 to 93566ae Compare October 9, 2024 07:35
@yctomwang
Copy link
Collaborator

looks like the ci has some issue regarding ubuntu with with python3.7, I think it might be time to drop it. Also seems to have some minor lint issue with one unused variable.

Copy link

@stevanmilic
Copy link
Author

Hi @yctomwang, thanks for review!

I've fixed the lint issue, and removed 3.7 from test matrix. Please take a look 🙏🏻

@stevanmilic
Copy link
Author

Hi @yctomwang, do you have the time to take a look at this PR?

@yctomwang
Copy link
Collaborator

@stevanmilic Hey Steven, I have been extremely busy with work commits but i promise in the next few days i will get to review this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pydantic v2's error object contains a ctx field
2 participants