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

Is there a guide to using Validated? #1097

Open
ayush-finix opened this issue Jan 17, 2020 · 1 comment
Open

Is there a guide to using Validated? #1097

ayush-finix opened this issue Jan 17, 2020 · 1 comment

Comments

@ayush-finix
Copy link

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 #826 as another issue, but I don't see the proposed ap method.

@ayush-finix
Copy link
Author

ayush-finix commented Jan 17, 2020

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

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

No branches or pull requests

1 participant