Skip to content

Comments

Allow attributes in the xml namespace to roundtrip with serde#873

Merged
Mingun merged 1 commit intotafia:masterfrom
curatorsigma:serde_roundtrip_xml_attrs
Jun 28, 2025
Merged

Allow attributes in the xml namespace to roundtrip with serde#873
Mingun merged 1 commit intotafia:masterfrom
curatorsigma:serde_roundtrip_xml_attrs

Conversation

@curatorsigma
Copy link

This fixes #841.

When deserializing attribute names, this version prevents the xml: namespace prefix to be split off.

I am admittedly not familiar with XML namespaces at all and have taken this reasoning at face value. If this is not a desirable feature after all, please let me know!

@Mingun Mingun added serde Issues related to mapping from Rust types to XML namespaces Issues related to namespaces support labels Jun 25, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2025

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

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 58.33%. Comparing base (254fbd2) to head (bc18c57).
Report is 43 commits behind head on master.

Files with missing lines Patch % Lines
src/name.rs 50.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #873      +/-   ##
==========================================
- Coverage   60.74%   58.33%   -2.42%     
==========================================
  Files          41       42       +1     
  Lines       16044    17118    +1074     
==========================================
+ Hits         9746     9985     +239     
- Misses       6298     7133     +835     
Flag Coverage Δ
unittests 58.33% <70.00%> (-2.42%) ⬇️

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.

@Mingun Mingun force-pushed the serde_roundtrip_xml_attrs branch from 5d41f9b to bc18c57 Compare June 28, 2025 13:42
@Mingun Mingun merged commit 2cbb2b8 into tafia:master Jun 28, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

namespaces Issues related to namespaces support serde Issues related to mapping from Rust types to XML

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impossible to serialize and/or deserialize reserved xml attributes.

4 participants