We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I want to serialize a type such as:
type State = | None | OverflowedState | RestartedState type Main = { State: State }
to have the following JSON:
{ "state": "<none|overflowed_state|restarted_state>" }
I tried using transforms for this, but they don't seem to get called for enum/union values. Is there any way to do it?
The text was updated successfully, but these errors were encountered:
I see the problem - I will take a look at this.
Sorry, something went wrong.
ping?
Any changes here?
Can borrow scheme and some impl from https://github.com/eiriktsarpalis/TypeShape/blob/main/src/TypeShape/Applications/UnionContract.fs#L9
No branches or pull requests
Hi, I want to serialize a type such as:
to have the following JSON:
I tried using transforms for this, but they don't seem to get called for enum/union values. Is there any way to do it?
The text was updated successfully, but these errors were encountered: