fluent-validator icon indicating copy to clipboard operation
fluent-validator copied to clipboard

Chain validation always returns one message

Open vardansargsyan92 opened this issue 7 years ago • 4 comments

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 ?

vardansargsyan92 avatar Apr 03 '18 13:04 vardansargsyan92

Which strategy is enabled ?failfast or failover ?

neoremind avatar May 27 '18 10:05 neoremind

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?

vardanxamlab avatar May 27 '18 11:05 vardanxamlab

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 avatar May 27 '18 11:05 vardansargsyan92

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.

ghost avatar May 22 '19 11:05 ghost