validate
validate copied to clipboard
Get array of errors
Hi I like the package, it's simple and direct to what I need but I would like to have an array of errors because in my requirements I have to send and Array with the path and the error message because in the UI the client developers rely on the keys of the path of the error to highlight the inputs the users didn't fill correctly, even though we achieve the things by hand in the frontend and in the backend, but the simplicity of this package got my attention and now I'm seeing if this could make our middlewares more thinner.
I see it does but the errors are shallow checked, I mean just at one level and stop the validation at the first error found, it would be nice to have different errors from the same input, for example: min length, max length, must be string, must not be empty, and so on. So all of them checked and not only stopped at the first error.
Thanks.
That makes sense. We could have an option for it, at least
No update on this ? Need this option.