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

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

Conversation

weiliddat
Copy link

@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
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
Author

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

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