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
Describe the bug
The AbstractDecimalMinMaxConstraint when used as part of DecimalMin or DecimalMax does not output the correct error message. Instead of showing the value passed in the directive as the parameter for the min or the max, it simply outputs the value that gets validated (the value being passed into the field).
Note: This works fine in all other constraints, including AbstractMinMaxConstraint which is similar. The issue is that the AbstractDecimalMinMaxConstraint passes in the validated value, not the directive value when composing the message.
Describe the bug
The
AbstractDecimalMinMaxConstraint
when used as part ofDecimalMin
orDecimalMax
does not output the correct error message. Instead of showing the value passed in the directive as the parameter for the min or the max, it simply outputs the value that gets validated (the value being passed into the field).Note: This works fine in all other constraints, including
AbstractMinMaxConstraint
which is similar. The issue is that theAbstractDecimalMinMaxConstraint
passes in the validated value, not the directive value when composing the message.To Reproduce
For this mutation and input:
When passing in an invalid value like
1
, will generate the following error message:Instead, it should have generated:
The text was updated successfully, but these errors were encountered: