Skip to content

Conversation

@Viicos
Copy link
Member

@Viicos Viicos commented Dec 17, 2025

Fixes #12628.

Change Summary

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@Viicos Viicos added the relnotes-fix Used for bugfixes. label Dec 17, 2025
@cloudflare-workers-and-pages
Copy link

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b442ea4
Status: ✅  Deploy successful!
Preview URL: https://4be9d1b1.pydantic-docs.pages.dev
Branch Preview URL: https://vp-missing-warning.pydantic-docs.pages.dev

View logs

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 17, 2025

CodSpeed Performance Report

Merging #12635 will not alter performance

Comparing vp/missing-warning (b442ea4) with main (a728bac)

Summary

✅ 211 untouched

continue;
}
if value.is(missing_sentinel) {
has_missing_value = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be more precise to add this to used_req_fields if field.required, instead of having a separate boolean? (e.g. would allow us still to warn if an optional field is missing and a required field is also missing)?

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

Labels

relnotes-fix Used for bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

warning raised when calling model_dump on model with nested MISSING fields

3 participants