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

Allow decoding of discriminated unions with whitespace #49

Merged
merged 3 commits into from
Jan 16, 2022

Conversation

kubukoz
Copy link
Member

@kubukoz kubukoz commented Jan 14, 2022

Fixes #48. Implementation by @Baccata.

@kubukoz
Copy link
Member Author

kubukoz commented Jan 15, 2022

Random thought, we should test for what happens if the discriminator isn't the first field. I'll add a test here.

Thanks for the fix!

@kubukoz kubukoz changed the title Reproduce #48 Allow decoding of discriminated unions with whitespace Jan 16, 2022
@kubukoz
Copy link
Member Author

kubukoz commented Jan 16, 2022

I'd approve but this is my PR so I can't 😂

@Baccata Baccata merged commit e3d718e into main Jan 16, 2022
@Baccata Baccata deleted the discriminated-whitespace-repro branch January 16, 2022 08:40
Baccata added a commit that referenced this pull request May 10, 2022
…repro

Allow decoding of discriminated unions with whitespace
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.

Discriminated union decoding doesn't work with whitespace
2 participants