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

Use io.github.mackimaow:kotlin-union for unions #523

Open
mackimaow opened this issue Feb 1, 2025 · 0 comments
Open

Use io.github.mackimaow:kotlin-union for unions #523

mackimaow opened this issue Feb 1, 2025 · 0 comments
Labels

Comments

@mackimaow
Copy link

⭐ Suggestion

I made a nice alternative handling external union types with type checking rather than using dynamic (which is not type safe).

I believe that dukat can obtain enough information to generate the union cases (specified in the kotlin-union repository)
It would be nice to have all instances of where union is required to be replaced with Union<...> from kotlin-union.

The readme of the repository explains the subtleties of the usage of the Union type.

📚 Additional Information

Kotlin Union Repo

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

No branches or pull requests

1 participant