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

Handle union types #1183

Open
DavidPerezIngeniero opened this issue Aug 26, 2024 · 1 comment
Open

Handle union types #1183

DavidPerezIngeniero opened this issue Aug 26, 2024 · 1 comment

Comments

@DavidPerezIngeniero
Copy link

DavidPerezIngeniero commented Aug 26, 2024

It would be deisrable to handle union types, at least in some simple scenarios, like sealed class hierarchies are supported.

Some examples:

Seq[Int|String|Date]
Option[Int|String|Date|Double]
String | Boolean | MyCaseClass

I know that full support to union types is complicated.

A custom codec could be written, but it would be interesting that jsoniter could handle this automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants