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
Maybe we can find a way to fail on compilation if user provided non-exhaustive ADT legs
sealed trait Foo case class A extends Foo case class B extends Foo case class C extends Foo val schema : Schema[Foo] = Schema.oneOf[Foo]{alt => val schemaA : Schema[A] = ??? val schemaB : Schema[B] = ??? alt(schemaA) |+| alt(schemaB) // fail to compile here, because missing schemaC }
The text was updated successfully, but these errors were encountered:
This is documented as a limitation, it would be nice if it could be prevented, but I don't really see an easy solution
Sorry, something went wrong.
No branches or pull requests
Maybe we can find a way to fail on compilation if user provided non-exhaustive ADT legs
The text was updated successfully, but these errors were encountered: