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: correctly deserialize string-based enums in XML protocols #1136

Merged
merged 6 commits into from
Aug 8, 2024

Conversation

lauzadis
Copy link
Contributor

@lauzadis lauzadis commented Aug 5, 2024

We were not distinguishing between strings and string-based enums when generating the parser for XML protocols. This PR updates the codegen to treat string shapes with the EnumTrait as enums.

Issue #

Closes #1125

Description of changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lauzadis lauzadis requested a review from a team as a code owner August 5, 2024 21:06

This comment has been minimized.

Copy link
Contributor

@ianbotsf ianbotsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctness: Add new test(s) to cover this behavior (possibly protocol or E2E).

This comment has been minimized.

1 similar comment

This comment has been minimized.

Copy link

github-actions bot commented Aug 8, 2024

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
serde-jvm.jar 51,024 51,003 21 0.04%
serde-json-jvm.jar 70,280 70,256 24 0.03%
runtime-core-jvm.jar 796,904 796,827 77 0.01%

@lauzadis lauzadis merged commit e733f4d into main Aug 8, 2024
15 checks passed
@lauzadis lauzadis deleted the fix-enum-deserialization branch August 8, 2024 21:21
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.

XML protocols don't generate list deserializers properly for old-style enum elements
3 participants