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
vale= io.circe.Encoder.instance[Option[Int]] { _ =>??? } // fake, not used in this examplevald= io.circe.Decoder.decodeOption[Int]
valc= io.circe.Codec.from(d, e)
valh= io.circe.Json.obj().hcursor
I'd expect c to behave exactly as d on all inputs to any of the Decoder methods. But it obviously doesn't. This is because it falls back to the default implementations of tryDecode etc instead of properly delegating all the methods to any potential overrides already baked into d.
The text was updated successfully, but these errors were encountered:
Looks to me like the Codec.from method only overrides the 2 abstract methods from Encoder and Decoder, but in reality, we override various other methods from Encoder/Decoder all the time... we need to update that Codec.from implementation (and any other implementations of Codec for that matter) so that it correctly proxies ALL methods to the correct underlying Encoder/Decoder
Assuming
is
expected?
I'd expect
c
to behave exactly asd
on all inputs to any of theDecoder
methods. But it obviously doesn't. This is because it falls back to the default implementations oftryDecode
etc instead of properly delegating all the methods to any potential overrides already baked intod
.The text was updated successfully, but these errors were encountered: