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

Derive is crashing on follwing input using union types #755

Open
dejvid opened this issue Nov 12, 2024 · 0 comments
Open

Derive is crashing on follwing input using union types #755

dejvid opened this issue Nov 12, 2024 · 0 comments

Comments

@dejvid
Copy link

dejvid commented Nov 12, 2024

Hello, I am reporting an issue with the Schema derive functionality:

enum ErrorGrup1:
  case Err1
  case Err2
  case Err3

enum ErrorGrup2:
  case Err21
  case Err22
  case Err23

case class Value(i: Int)
object Value:
  given Schema[Value] = DeriveSchema.gen[Value]

case class REsult(res: Either[ErrorGrup1 | ErrorGrup2, Value])
object REsult:
  given Schema[REsult] = DeriveSchema.gen[REsult]

Is throwing this error:
Screenshot 2024-11-12 at 23 49 09
Expected is that is works with union types.

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

No branches or pull requests

1 participant