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 deserialization of string based enum types #2774

Merged
merged 2 commits into from Feb 7, 2024

Conversation

s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Feb 7, 2024

Since the original PR unfortunately got stuck, this is using and extending the unit tests by @madmax-inc in #2345 and replicates the manual value-to-enum conversion with an added NoDuplicates to fix handling of enums with duplicate values.

Fixes #2209. Closes #2345.

@s-ludwig s-ludwig force-pushed the fix_string_enum_deserialization branch from 2a06bff to fecff7d Compare February 7, 2024 11:33
This is using and extending the unit tests by @madmax-inc in #2345 and replicates the manual value-to-enum conversion with an added `NoDuplicates` to fix handling of enums with duplicate values.

Fixes #2209.
@s-ludwig s-ludwig force-pushed the fix_string_enum_deserialization branch from fecff7d to 3227f04 Compare February 7, 2024 11:53
@s-ludwig s-ludwig merged commit 8e35c8c into master Feb 7, 2024
74 checks passed
@Geod24 Geod24 deleted the fix_string_enum_deserialization branch February 7, 2024 13:08
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.

Deserialization by value is not checked against enum values
2 participants