Making Akkurate usable with Either exception handling #2
Replies: 5 comments 8 replies
-
It will be good to introduce the possibility to stop the evaluation process after the first failure occurs so that it integrates with usage of
|
Beta Was this translation helpful? Give feedback.
-
Would there also be a possibility to |
Beta Was this translation helpful? Give feedback.
-
And it might be nice to have a first class validator type for Either, like there is for suspend functions? But then it might be hard to keep Arrow out of the dependencies of the main module... |
Beta Was this translation helpful? Give feedback.
-
As already told, Arrow is clearly on Akkurate's roadmap (will try to clean it and make it public tomorrow). Like you've already done, keep posting if you have any suggestions for this specific integration, I will add them to the roadmap. 😉 |
Beta Was this translation helpful? Give feedback.
-
Akkurate now provides support for Arrow: https://akkurate.dev/docs/arrow-integration.html |
Beta Was this translation helpful? Give feedback.
-
Because in most of the new projects I'm starting the exception handling is done using an
Either
type I directly checked if it integrates in the usage of Akkurate. Akkurate already returns a result type consist ofSuccess
andFailure
that needs to be mapped to the corresponding left and right type of anEither
The
toNonEmptyList
function is working because anFailure
at minimum contains one violation. So this can be translated to a list of failures (ValidationFailure is a class of a failure hierarchy).Beta Was this translation helpful? Give feedback.
All reactions