ealush / vest

Vest ✅ Declarative validations framework
https://vestjs.dev/
MIT License
2.56k stars 84 forks source link

Get errors across all suits #677

Open shemayas opened 3 years ago

shemayas commented 3 years ago

Is there a way to get the errors of all existing validations suits?

ealush commented 3 years ago

Hey @shemayas, sorry for responding late. I completely missed this issue.

I know it's been long, but can you please try and elaborate on what exactly it is you are trying to achieve?

shemayas commented 3 years ago

I'm using different suits of validation on one page and on submit I want to check that all of them don't have any errors.

Is there a way to do that or do I need to loop on all my suits?

neviaumi commented 2 years ago

https://vestjs.dev/docs/writing_your_suite/result_object#geterrors-and-getwarnings

What problem of getErrors here 🤔?

shemayas commented 2 years ago

@davidNHK That gives you the errors for one suit, I asked if there is a way to get the errors of all the existing suits