refactor: 修改 BaseComparablePropertyValidator#inRange 默认提示语

This commit is contained in:
zhouxy108 2025-05-20 10:03:37 +08:00
parent 358cdaf1ad
commit dcf620b63e

View File

@ -33,7 +33,7 @@ class BaseComparablePropertyValidator<TObj,
public TPropertyValidator inRange(Range<TProperty> range) {
withRule(value -> value != null && range.contains(value),
convertExceptionCreator("The value is not in " + range.toString()));
convertExceptionCreator("The value is not in the interval " + range.toString()));
return thisObject();
}