-
Notifications
You must be signed in to change notification settings - Fork 161
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
JSONCodec.decoder streaming is broken with optional values #685
Labels
Comments
/bounty $75 |
💎 $75 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-schema! Add a bounty • Share on socials
|
/attempt #685 Options |
💡 @paulpdaniels submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
🎉🎈 @paulpdaniels has been awarded $75! 🎈🎊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The latest release (1.2.0) breaks the
JsonDecoder[A].decodeJsonPipeline
operation in cases where there is an optional primitive within an object body.Consider:
This results in the error
Left(value = java.lang.Exception: .name(expected '"' got 'J'))
. The same error does not occur when the value is required or if you use theassertDecodes
utility in the test project, which is backed byJsonCodec.schemaBasedBinaryCodec[A](cfg)(schema).streamDecoder
.The text was updated successfully, but these errors were encountered: