Skip to content

Conversation

@djc
Copy link
Owner

@djc djc commented Mar 11, 2025

FromXml and ToXml treated ns(foo) on fields inconsistently:

  • FromXml treated foo as a path to a constant containing the full namespace string
  • ToXml treated foo as a namespace prefix defined on the container type

Change the ToXml treatment to match the FromXml treatment, favoring less indirection.

Use a semver-incompatible version bump to signal the potential incompatibility.

cc @vshashi01

@vshashi01
Copy link
Contributor

Yeap this works!

@vshashi01
Copy link
Contributor

I think the deserialization still fails with a UnknownPrefix error. Extending the test to include a FromXml test should reveal this I belief.

@djc
Copy link
Owner Author

djc commented Mar 11, 2025

I think the deserialization still fails with a UnknownPrefix error. Extending the test to include a FromXml test should reveal this I belief.

Nice catch! Fixed it.

@djc djc merged commit e08152c into main Mar 11, 2025
7 checks passed
@djc djc deleted the ns-paths branch March 11, 2025 12:24
@djc
Copy link
Owner Author

djc commented Mar 11, 2025

(Please file new issues if you run into more stuff, instead of commenting on the old issue. 👍)

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.

3 participants