Is your feature request related to a problem? Please describe.
There are many issues related to the inability of getting all errors after validation. Here are the examples:
https://github.com/logaretm/vee-validate/issues/2660
https://github.com/logaretm/vee-validate/issues/2569
https://github.com/logaretm/vee-validate/issues/2546
VeeValidate is a great library but for me this is very strange that such a complex library does provide no way of getting detailed errors information after validation.
Describe the solution you'd like
My solution is simple. We already have the validate method in ValidationObserver which returns true or false depending on validation results. We probably cannot change the return value of this method, because this would a breaking change.
That's why we can provide a different method. It can be called, i.e. validateAll (I don't have a better name). This method should return detailed validation information about all errors.
I saw in the source code, that there is already an internal validate function which returns detailed validation result https://github.com/logaretm/vee-validate/blob/8fed3a2a440a0eec2cc558540bba2f70ef30fd10/src/validate.ts#L38
So, maybe this won't be difficult bring this method to the public API?
Additional context
I know that you are probably working on v4, but this simple feature would be very beneficial for many projects which depends on VeeValidate v3. Also many projects probably won't migrate to v4 if the migration will be too costly.
added validateWithInfo() in 3.4.0
@logaretm
Thanks a lot 👍
I checked it and it works fine.
Most helpful comment
@logaretm
Thanks a lot 👍
I checked it and it works fine.