-
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
codec fails while decoder succeeds in 0.3.0-RC7 #622
Comments
Thanks for the minimization, @fanf. I can confirm that something’ going on here and I’m working on it. |
@fanf It looks to me that The most minimal workaround is to also a implicit lazy val eitherListOrValueDecoder: JsonDecoder[Either[List[String], JsonExpectedValueId7_1]] =
codecJsonEitherValue.decoder I’m not yet sure about how to fix this properly. |
I will try, thanks. What is suprising is that it used to work in ZIO 1.0 |
@fsvehla sorry for the delay, I was finally able to test your workaround and I can confirm that always using a pair of |
Thanks for the update. |
When trying to test upgrade to ZIO 2.0, I discovered that a codec that was correctly decoding JSON with
zio-json 2.0.0-M3
is now failing with3.0.0-RC7
.Even weirder, the decoding starts to work if I remove the encoder from the codec (and only keeps the decoder).
A minimization of the problem is available here: https://gist.github.com/fanf/8e77ffcb6af1be02670338254356135d
The text was updated successfully, but these errors were encountered: