Skip to content

Add support for the client supporting serializing enum values#2277

Merged
jmartisk merged 1 commit intosmallrye:mainfrom
rubik-cube-man:enum-serialization
Mar 28, 2025
Merged

Add support for the client supporting serializing enum values#2277
jmartisk merged 1 commit intosmallrye:mainfrom
rubik-cube-man:enum-serialization

Conversation

@rubik-cube-man
Copy link
Copy Markdown
Contributor

Previously, if you tried to use an enum as a variable, it would error, as it would try to be serialized to JSON. As there was no applicable JSON serializer associated with this enum it would fail.

This changes makes sure that enums are serialized as a string.

Copy link
Copy Markdown
Member

@jmartisk jmartisk left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@jmartisk jmartisk merged commit cc430b2 into smallrye:main Mar 28, 2025
5 checks passed
@github-actions github-actions Bot added this to the 2.13.0 milestone Mar 28, 2025
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.

2 participants