-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Error validation transformer (VTransformer) #120
Conversation
87eb9d1
to
58c1ca0
Compare
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
=======================================
Coverage 95.99% 95.99%
=======================================
Files 8 8
Lines 449 449
Branches 64 64
=======================================
Hits 431 431
Misses 18 18
Continue to review full report at Codecov.
|
dc88af4
to
8a3f159
Compare
b786441
to
5b93ccb
Compare
5b93ccb
to
d69b3a4
Compare
can I somehow help with this? I would really like to use it 😃 |
you probably need to update scoverage to 1.6.1+ |
@REDNBLACK @ulanzetz the Travis CI build is failing for Scala 2.13. Upgrading |
@sideeffffect scoverage version is already 1.6.1. Master build also failed on 2.13 |
maybe try changing the Travis config, so that we test on 2.13.1 (currently it's 2.13.0) |
Thanks, @sideeffffect. Bumping version to 2.13.1 in travis config helped |
@krzemin, what about this PR? Could you give any feedback for this. Does it make sense to continue? |
Hi @ulanzetz, I was finally able to take a look at your PR. Below some general thoughts.
Thank you for your contribution effort - I think that it totally make sense to continue working on this. I can offer some hints how to tackle these issues. |
Resolved as part of #145 |
This PR adds chimney-validated module with VTransformer, which can use unsafe transformations like Option unwrapping (can be usefull with proto3 generated case classes (#118)), int from string parsing etc, but unlike enableUnsafeOption all errors are aggregated to chain and contains full path to failed fields. In my code I use cats.data.Validated, but it can be rewritten by own error-chaining semigroup implementations.
Also. now it's limited by 22 fields in single case class.
I'd be thankful for review and feedback