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
For number 0.01 and validation setting ScalePrecision(1, 3) error message will be
Exp: 'Discount' must not be more than 3 digits in total, with allowance for 1 decimal. 0 digits and 2 decimals were found.
Act: 'Discount' must not be more than 3 digits in total, with allowance for 1 decimals. -1 digits and 2 decimals were found.
I created pull request with possible way to fix it. #1790
Steps to Reproduce
add this case to Scale_precision_should_not_be_valid test
result = validator.Validate(new Person { Discount = 0.01M });
result.IsValid.ShouldBeFalse();
result.Errors[0].ErrorMessage.ShouldEqual("'Discount' must not be more than 3 digits in total, with allowance for 1 decimal. 0 digits and 2 decimals were found.");
The text was updated successfully, but these errors were encountered:
FluentValidation version
10.3.0
ASP.NET version
No response
Summary
For number 0.01 and validation setting ScalePrecision(1, 3) error message will be
Exp: 'Discount' must not be more than 3 digits in total, with allowance for 1 decimal. 0 digits and 2 decimals were found.
Act: 'Discount' must not be more than 3 digits in total, with allowance for 1 decimals. -1 digits and 2 decimals were found.
I created pull request with possible way to fix it.
#1790
Steps to Reproduce
add this case to Scale_precision_should_not_be_valid test
The text was updated successfully, but these errors were encountered: