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

feat(TypeSafeEnum): Merge impls; expose Union #102

Merged
merged 4 commits into from
Aug 28, 2023
Merged

Conversation

bartelink
Copy link
Collaborator

@bartelink bartelink commented Aug 26, 2023

The TypeSafeEnum helper class initially lived in NewtonsoftJson as it was an internal impl detail of the converter
The STJ reimpl did some optimisation etc while following the same API

This comes to a head on the consumption side if you need to programmatically manipulate Union and/or TypeSafeEnum generically; abusing FsCodec.SystemTextJson.TypeSafeEnum.toString makes things very confusing.

@bartelink bartelink merged commit d9f9a1b into master Aug 28, 2023
8 checks passed
@bartelink bartelink deleted the fscodec-union branch August 28, 2023 12:16
@bartelink bartelink changed the title feat(TypeSafeEnum): Merged impls; exposed Union feat(TypeSafeEnum): Merge impls; expose Union Aug 28, 2023
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.

1 participant