Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decoding xml blob with key that must follow a pattern #346

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

JoseIgnacioTamayo
Copy link
Collaborator

A fix for #345

When decoding an XML blob, pyanbind was trying to check the pattern restriction on an lxml.objectify.StringElement object, which is not a native string type.

With JSON decoding, this problem does not happen because the JSON value is a native str type.

This Test checks that an XML blob can be decoded, when there is a list whose string keys are restricted.
Fix for decoding an XML blob when there is a list whose string keys are restricted.
@JoseIgnacioTamayo JoseIgnacioTamayo merged commit 27a84dc into master Apr 9, 2024
7 checks passed
@JoseIgnacioTamayo JoseIgnacioTamayo deleted the fix_xml_decode_regex_key branch April 9, 2024 04:15
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.

None yet

2 participants