neoremind / fluent-validator

A Java validation framework leveraging fluent interface style and JSR 303 specification
Apache License 2.0
1.02k stars 222 forks source link

Chain validation always returns one message #33

Open vardansargsyan92 opened 6 years ago

vardansargsyan92 commented 6 years ago

Hey I am trying to use chain validation and for that I have two validation class . The problem is that when I validate the chain which contains the two validation class as I mentioned earlier the result returns only one instead of two . So my question is how can I get multiple error messages meanwhile ?

neoremind commented 6 years ago

Which strategy is enabled ?failfast or failover ?

vardanxamlab commented 6 years ago

I am unfamiliar with the strategies that you've mentioned. Perhaps I used these but I am not sure what does failfast and failover mean. Could you explain with examples or give more info about these?

vardansargsyan92 commented 6 years ago

I am unfamiliar with the strategies that you've mentioned. Perhaps I used these but I am not sure what does failfast and failover mean. Could you explain with examples or give more info about these?

ghost commented 5 years ago

I am unfamiliar with the strategies that you've mentioned. Perhaps I used these but I am not sure what does failfast and failover mean. Could you explain with examples or give more info about these?

failFast mean that, if first validation is failed. then the framework will immediately return the result and of course contain only one result. because the second validation will no longer to be executed. in contrast to failFast, failOver will execute all validation no matter one of them is failed.