Skip to content
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

Rewrite DynamicValue error handling to Validate #549

Closed

Conversation

andrzejressel
Copy link
Contributor

@andrzejressel andrzejressel commented Apr 30, 2023

Due to the fact that most if the zio-schema codebase is using Either, there must be .toEither.left.map(_.toString) on the edge.

I've tried to going further than that, but it would require changes in the whole codebase.

Requires: zio/zio-json#771

Fixes #480
/claim #480

@andrzejressel andrzejressel requested a review from a team as a code owner April 30, 2023 14:41
@jdegoes
Copy link
Member

jdegoes commented May 17, 2023

@andrzejressel I modified the bounty to $150, can you push Validation all the way through so we can benefit from these accumulated errors past the edge?

@andrzejressel
Copy link
Contributor Author

Fortunately it does not look that bad in diff view. I have to rewrite examples and add do changes on zio-json and zio-bson

@andrzejressel
Copy link
Contributor Author

Since I don't have so much time anymore and ZIO-JSON seems to not like accumulation: https://discord.com/channels/629491597070827530/733728086637412422/1113027920420675674 - I'm closing this MR.

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.

Improve DynamicValue error handling
2 participants