Add transformation and composition operators to JsonCodec
Just as JsonEncoder and JsonDecoder support a wide range of operators, which transform and combine codecs, so also can JsonCodec support operators, including:
-
orElse -
orElseEither -
zip -
zipLeft -
zipRight
These will have type signatures similar to the existing type signatures.
In addition, an xmapOrFail could be added, probably here and to the parent types.
@jdegoes can I take this up?
@afsalthaj of course
No one is working on this, I don't think.
I am going to attempt this
@fsvehla The specific methods mentioned seem to be taken care of in zio2 , is there anything left to be done for this issue? edit: I see xmapOrFail is not done yet