-
Notifications
You must be signed in to change notification settings - Fork 159
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
Schema derivation fails for enumeration with empty sub-tree #667
Comments
/bounty $75 |
💎 $75 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-schema! |
/attempt #667 |
@varshith257: We appreciate your enthusiasm but since you already have 3 active bounty attempts, we're going to keep this open for other contributors to attempt. 🫡 |
@jdegoes I think this is not an easy fix. The issue seems for me to be, that our derivation depends on the |
Schema derivation fails when intermediate types with no leaf case objects/classes derived from them are present
in the sealed trait (or sealed abstract class) hierarchy.
I can understand failure to derive the schema if the whole hierarchy is empty (no leaf case class/object nodes at all),
even though I think it should still work; but failing for the example below seems wrong:
The text was updated successfully, but these errors were encountered: