Skip to content

Sum codec errors #68

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Sum codec errors #68

wants to merge 3 commits into from

Conversation

wclr
Copy link

@wclr wclr commented Dec 29, 2024

This fixes #66

I updated decode logic of sum codecs, instead of Either JsonDecodeError rep it returns Either JsonDecodeError (Maybe rep), meaning that it was not the case, decode error is returned only by the codec that finds the appropriate tag value in the object.

I belive @m-bock may review this.

@wclr wclr mentioned this pull request Dec 30, 2024
@m-bock m-bock mentioned this pull request Jan 23, 2025
@m-bock
Copy link
Contributor

m-bock commented Jan 23, 2025

@wclr
I looked into your PR! It was very helpful to get a better understanding of the problem. Thanks for the effort!
I ended up to go a slightly different way: #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New sum codec does not report accurate errors
2 participants