Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Populate field name for validation of default value - #1826

Merged
Viicos merged 1 commit into
mainfrom
validate-default-field-name
Oct 8, 2025
Merged

Viicos merged 1 commit into
mainfrom
validate-default-field-name

Conversation

@Viicos

@Viicos Viicos commented Oct 8, 2025

Copy link
Copy Markdown
Member

Change Summary

Regression in #1692.
Fixes pydantic/pydantic#12347.

Related issue number

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

@codspeed

codspeed Bot commented Oct 8, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #1826 will not alter performance

Comparing validate-default-field-name (4195ea9) with main (f5e72c3)

Summary

✅ 163 untouched

@Viicos
Viicos merged commit 3043aba into main Oct 8, 2025
32 checks passed
@Viicos
Viicos deleted the validate-default-field-name branch October 8, 2025 08:28
davidhewitt pushed a commit to pydantic/pydantic that referenced this pull request Oct 20, 2025
davidhewitt pushed a commit to pydantic/pydantic that referenced this pull request Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.12.0: ValidationInfo.field_name is None when validating default values with validate_default=True

1 participant