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
Custom validator returns a generic message when a value is not valid hat is not very helpful
DESCRIPTION
Since version 0.2.0, there is the possibility to validate arguments value inserted by the user. In order to do it, there is a new attribute called ValueValidator and a new interface called IValueValidator.
If a value passed to an argument is not valid, the application returns an error like the one below
[10/12/2023 20:53:21] ERROR (3) : The value provided to argument score is not valid according to the validation procedure
Hovewer, this error message is generic and may not be helpful to understand what are the correct values.
It is needed to provide a way to give custom error message so that the error is more specific and help the user to choose the correct value for the argument.
ACCEPTANCE CRITERIA
The library should raise an error with the custom message if the value chosen by the user is not valid
The text was updated successfully, but these errors were encountered:
gcramarossa
changed the title
Implement custom error message when using a custom validator for an argument
Implement custom error messages when using a custom validator for an argument
Dec 11, 2023
ISSUE TYPE
Feature
SHORT DESCRIPTION
Custom validator returns a generic message when a value is not valid hat is not very helpful
DESCRIPTION
Since version 0.2.0, there is the possibility to validate arguments value inserted by the user. In order to do it, there is a new attribute called ValueValidator and a new interface called IValueValidator.
If a value passed to an argument is not valid, the application returns an error like the one below
[10/12/2023 20:53:21] ERROR (3) : The value provided to argument score is not valid according to the validation procedure
Hovewer, this error message is generic and may not be helpful to understand what are the correct values.
It is needed to provide a way to give custom error message so that the error is more specific and help the user to choose the correct value for the argument.
ACCEPTANCE CRITERIA
The library should raise an error with the custom message if the value chosen by the user is not valid
The text was updated successfully, but these errors were encountered: