Skip to content

Add test for and fix JSON serialization of tuple-like enum variants with a single field - #150

Merged
knickish merged 2 commits into
not-fl3:masterfrom
knickish:json_single_field_enum_serialization
Apr 12, 2026
Merged

Add test for and fix JSON serialization of tuple-like enum variants with a single field#150
knickish merged 2 commits into
not-fl3:masterfrom
knickish:json_single_field_enum_serialization

Conversation

@knickish

@knickish knickish commented Feb 7, 2026

Copy link
Copy Markdown
Collaborator

closes #140

@knickish
knickish force-pushed the json_single_field_enum_serialization branch from 22eaf84 to dce06c7 Compare February 7, 2026 22:00
@knickish
knickish marked this pull request as ready for review February 7, 2026 22:00
@knickish
knickish requested a review from not-fl3 February 7, 2026 22:01
@hgmich

hgmich commented Feb 15, 2026

Copy link
Copy Markdown

This doesn't appear to apply the same logic to deserialization, which causes round-trips to fail as the deserializer still expects only an array for single-member tuples.

@knickish
knickish force-pushed the json_single_field_enum_serialization branch from d2bc850 to b4ed837 Compare April 12, 2026 18:14
@knickish
knickish merged commit 5abd5e3 into not-fl3:master Apr 12, 2026
16 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.

Generating Typescript type declarations

3 participants