-
Notifications
You must be signed in to change notification settings - Fork 149
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 Scala 3 derivation instead of Magnolia for Scala 3 #434
Comments
It would be great to have some handy approach for derivation configuration without annotations in Scala 3. As an example, jsoniter-scala-macros for Scala 2 uses a configuration parameter for the |
I’ll look into this, @plokhotnyuk, thanks for the pointer :) |
@fsvehla The problem only that Scala 3 doesn't have |
Work on object examplesum {
sealed abstract class Parent
object Parent {
implicit val decoder: JsonDecoder[Parent] = DeriveJsonDecoder.gen
}
case class Child1() extends Parent
object Child1 {
// not necessary with Magnolia
implicit val decoder: JsonDecoder[Child1] = DeriveJsonDecoder.gen
}
case class Child2() extends Parent
object Child2 {
// not necessary with Magnolia
implicit val decoder: JsonDecoder[Child2] = DeriveJsonDecoder.gen
}
} |
Magnolia is moving quite slowly, and I think that I can implement all of it’s functionality
using Scala 3’s auto derivation + a few simple macros for case class annotations.
The text was updated successfully, but these errors were encountered: