-
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
Fixes #7: Implement JsonCodec #28
Conversation
I think this is done. Need to get wait for a new version of zio-json to get cut with zio/zio-json#202 included so we can update dependency here. Also, creating a real |
Waiting on zio/zio-json#213 to get the JDK8 tests to pass. Also blocked on JDK8 Duration handling due to this bug: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8054978 |
@thinkharderdev I merged your ZIO JSON pull request (thank you!). Can you work around the JDK8 bug? |
Depends. I can "work around" it by using a Gen that doesn't produce durations which trigger it, but to really fix it we would need to re-implement duration parsing in zio-json. |
@thinkharderdev I have logged the bug here so we can keep track of it and work around it in ZIO JSON, and then possibly, until that's done, we could just avoid generating such Duration by using the |
Yep. Works for me. |
Thank you for your work on this! |
* Initial commit of wip from https://github.com/zio/zio-web/pull/90. zio#7 > Co-authored-by: Brandon Brown <brandon@bbrownsound.com> Co-authored-by: Jason Pickens <jasonpickensnz@gmail.com> * WIP trying to get build working * wip * Fixes zio#7: Implement JSON Codec * Formatting * More unit tests * unit tests * Add non-streaming methods to JsonCodec * More test fixes * Transform failure tests * Update to published version of zio-json * Scala 2.12 support * Work around jdk 8 duration parsing bug Co-authored-by: Brandon Brown <brandon@bbrownsound.com> Co-authored-by: thinkharder <thinkharderdev@users.noreply.github.com>
Fixes #7
Still need to work out some of the tests but the codec implementation is done so wanted to get feedback in case I am way off base in the implementation.