8000 fix: submodel fields with wrap validator affect smart union selection by weiliddat · Pull Request #1700 · pydantic/pydantic-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: submodel fields with wrap validator affect smart union selection #1700

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

Merged
merged 2 commits into from
May 18, 2025

Conversation

weiliddat
Copy link
Contributor
@weiliddat weiliddat commented Apr 18, 2025

Change Summary

  • Keep fields_set_count state when validating submodels

Related issue number

Fixes pydantic/pydantic#11752

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @davidhewitt

@weiliddat
Copy link
Contributor Author

please review

Copy link
codspeed-hq bot commented Apr 18, 2025

CodSpeed Performance Report

Merging #1700 will not alter performance

Comparing weiliddat:fix/wrap-validator-smart-union (c697525) with main (334a9b0)

Summary

✅ 157 untouched benchmarks

@weiliddat weiliddat requested a review from Viicos April 25, 2025 18:00
@weiliddat
Copy link
Contributor Author

Just a ping in case it slipped your notifications @Viicos @davidhewitt

Copy link
Contributor
@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, sorry for the delay!

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

Successfully merging this pull request may close these issues.

WrapValidator annotation changes smart union score
3 participants
0