Skip to content

decoder2: improve enum decoding #25289

Merged
spytheman merged 6 commits into
vlang:masterfrom
Larsimusrex:decoder2_full_json2_compat
Sep 12, 2025
Merged

decoder2: improve enum decoding #25289
spytheman merged 6 commits into
vlang:masterfrom
Larsimusrex:decoder2_full_json2_compat

Conversation

@Larsimusrex

@Larsimusrex Larsimusrex commented Sep 12, 2025

Copy link
Copy Markdown
Contributor

This PR allows string representations of enums to be decoded. Additionally decoding values not contained in the enum will now throw an error.

It also includes two smaller fixes for unicode escapes >0xdfff and requiered fields at the end of a json string.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-25285

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.
Thank you 🙇🏻 .

@spytheman spytheman merged commit a8d200a into vlang:master Sep 12, 2025
78 checks 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.

2 participants