You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: #2660 #2569 #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
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.
The text was updated successfully, but these errors were encountered:
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:
#2660
#2569
#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 inValidationObserver
which returnstrue
orfalse
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 resultvee-validate/src/validate.ts
Line 38 in 8fed3a2
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.
The text was updated successfully, but these errors were encountered: