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
@@ -55,10 +56,10 @@ static Codec<String> string(final int minSize, final int maxSize) {
55
56
returnCodec.STRING.validate(value -> {
56
57
finalintlength = value.length();
57
58
if (length < minSize) {
58
-
returnDataResult.error(() -> "String must have at least " + minSize + " characters, but got " + length + ": \"" + value + "\"");
59
+
returnDataResult.error(() -> "String must have at least " + minSize + " " + EnglishUtil.pluralize(minSize, "character") + ", but got " + length + ": \"" + value + "\"");
59
60
}
60
61
if (length > maxSize) {
61
-
returnDataResult.error(() -> "String must have at most " + maxSize + " characters, but got " + length + ": \"" + value + "\"");
62
+
returnDataResult.error(() -> "String must have at most " + maxSize + " " + EnglishUtil.pluralize(minSize, "character") + ", but got " + length + ": \"" + value + "\"");
0 commit comments