cyclops icon indicating copy to clipboard operation
cyclops copied to clipboard

Is there a guide to using Validated?

Open ayush-finix opened this issue 5 years ago • 1 comments

I expected Validated to have an ap method or something, but I can't seem to find it. The only docs I can see are https://github.com/aol/cyclops/wiki/Validator, which clearly isn't the current implementation, and I notice https://github.com/aol/cyclops/issues/826 as another issue, but I don't see the proposed ap method.

ayush-finix avatar Jan 17 '20 08:01 ayush-finix

Doh, found this: https://medium.com/@johnmcclean/a-simple-functional-java-validation-example-3d2504e97d99.

I guess modifying the question, is there any way to combine like 20 fields of different types? I feel like there should be some way to combine a validated of a <Exception, String> and <Exception, Long> for example. I see a bunch of combine methods in vavr, for example https://www.vavr.io/vavr-docs/#_validation

ayush-finix avatar Jan 17 '20 21:01 ayush-finix