Add extra parameter to the validate functions#12233
Merged
davidhewitt merged 1 commit intopydantic:mainfrom Oct 5, 2025
Merged
Add extra parameter to the validate functions#12233davidhewitt merged 1 commit intopydantic:mainfrom
extra parameter to the validate functions#12233davidhewitt merged 1 commit intopydantic:mainfrom
Conversation
70df5a5 to
dad30a1
Compare
4 tasks
dad30a1 to
12c2de7
Compare
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||||||||
CodSpeed Performance ReportMerging #12233 will improve performances by 23.71%Comparing Summary
Benchmarks breakdown
|
Contributor
Author
|
Please review. This PR requires the recent pydantic-core 2.40.0 release, so I've included the version bump and test fixes. |
davidhewitt
approved these changes
Oct 3, 2025
Collaborator
davidhewitt
left a comment
There was a problem hiding this comment.
Thanks, this looks good to me. The pydantic-core version got bumped separately, so if you rebase on main the diff should be possible to clean up a fair bit.
12c2de7 to
da9ba3f
Compare
Contributor
Author
|
Thanks for your quick review, ready to merge now I think. Resolves #9278. |
13 tasks
1 task
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
This PR depends on the following PR in
pydantic-core: pydantic/pydantic-core#1722.This change adds an extra parameter to the validation functions, overriding any other model configuration.
Related issue number
feature #9278
Checklist
Selected Reviewer: @DouweM