Skip to content

Commit a5119ef

Browse files
Update limitProperties.ts (#1918)
* Update limitProperties.ts in absence of condition pluralization of message, at least have item(s) * Update lib/vocabularies/validation/limitProperties.ts Co-authored-by: Evgeny Poberezkin <[email protected]>
1 parent 3ec588b commit a5119ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vocabularies/validation/limitProperties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {_, str, operators} from "../../compile/codegen"
55
const error: KeywordErrorDefinition = {
66
message({keyword, schemaCode}) {
77
const comp = keyword === "maxProperties" ? "more" : "fewer"
8-
return str`must NOT have ${comp} than ${schemaCode} items`
8+
return str`must NOT have ${comp} than ${schemaCode} properties`
99
},
1010
params: ({schemaCode}) => _`{limit: ${schemaCode}}`,
1111
}

0 commit comments

Comments
 (0)