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
Currently, Params::ValidationCompiler throws an exception on the very first error it encounters. This is fine for many applications.
However, there are times when it may be useful to report on all parameters that failed to validate. For example: When validating user input from a web page, it's useful to be able to give feedback to the user on all fields that were invalid, rather than asking them to update the fields one at a time.
I propose that Params::ValidationCompiler should have an API that gives the user the option of failing on the very first exception, or testing all parameters and then throwing a list of exceptions.
Thanks!
The text was updated successfully, but these errors were encountered:
Currently, Params::ValidationCompiler throws an exception on the very first error it encounters. This is fine for many applications.
However, there are times when it may be useful to report on all parameters that failed to validate. For example: When validating user input from a web page, it's useful to be able to give feedback to the user on all fields that were invalid, rather than asking them to update the fields one at a time.
I propose that Params::ValidationCompiler should have an API that gives the user the option of failing on the very first exception, or testing all parameters and then throwing a list of exceptions.
Thanks!
The text was updated successfully, but these errors were encountered: