Skip to content

Conversation

dapper91
Copy link
Owner

@dapper91 dapper91 commented Oct 10, 2025

Due to pydantic 2.12 breaking changes FieldInfo can not be inherited anymore, FieldInfo.merge_field_infos is depricated.

The fix get rid of XmlEntityInfo inheritance from FieldInfo and uses FieldInfo metadata as an xml meta-information storage.

Fixes the issue #293 and #292

@dapper91 dapper91 force-pushed the fix/pydantic-212-compat branch 2 times, most recently from 8c05d43 to b6a8f3b Compare October 10, 2025 18:34
@dapper91 dapper91 force-pushed the fix/pydantic-212-compat branch from b6a8f3b to 3079a85 Compare October 10, 2025 19:33
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 98.59155% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.27%. Comparing base (3fecbed) to head (3079a85).

Files with missing lines Patch % Lines
pydantic_xml/compat.py 87.50% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #295      +/-   ##
==========================================
- Coverage   92.31%   92.27%   -0.04%     
==========================================
  Files          30       31       +1     
  Lines        1730     1748      +18     
==========================================
+ Hits         1597     1613      +16     
- Misses        133      135       +2     
Flag Coverage Δ
unittests 92.27% <98.59%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dapper91 dapper91 merged commit ad5213c into dev Oct 10, 2025
6 checks passed
@dapper91 dapper91 deleted the fix/pydantic-212-compat branch October 14, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants