Skip to content

Conversation

@kouak
Copy link
Contributor

@kouak kouak commented Dec 28, 2025

This PR aligns the deserialization behavior of restricted strings (e.g., pattern, length) with standard strings.

I updated the logic to normalize the schema name before checking the type. Now, restricted strings are correctly identified and behave exactly like standard strings.

Added a test.

Closes #1412

@kouak kouak marked this pull request as ready for review December 28, 2025 20:37
@kouak kouak changed the title fix: Empty string elements with restriction deserialization fix: align deserialization of restricted strings with standard strings Dec 28, 2025
@w666 w666 self-requested a review December 30, 2025 07:32
@w666
Copy link
Collaborator

w666 commented Dec 30, 2025

Hi @kouak,

Thank you for your contribution, especially for the tests.
Is this fix urgent for you. If yes, then I will try to allocate time tomorrow to build a new release.

@kouak
Copy link
Contributor Author

kouak commented Dec 30, 2025

It can wait :)

@w666 w666 merged commit 4b004a7 into vpulim:master Jan 1, 2026
1 check passed
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.

Empty string elements with XSD restrictions are deserialized as null instead of ""

2 participants