You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem here is that we expect the same behaviour as shapeless Lazy provides - the derived codec itself would be visible and used to construct the codec for List using circe std one.
Magnolia doesn't see it and derives coproduct codec for List instead, which doesn't look nice for json API:
Turning on -Xlog-implicits shows (disregarding noise) an access error for magnolia.Deferred. It looks like it should be made public for the sole purpose of typechecking.
Reproduction: https://github.com/vpavkin/magnolia/blob/e278256e713ddf3b1aa3365898e930eff168274b/tests/src/main/scala/CirceRecursiveTypeTest.scala
For types of this shape:
Problem here is that we expect the same behaviour as shapeless
Lazy
provides - the derived codec itself would be visible and used to construct the codec forList
using circe std one.Magnolia doesn't see it and derives coproduct codec for
List
instead, which doesn't look nice for json API:The text was updated successfully, but these errors were encountered: