Skip to content

Commit a5119ef

Browse files
TIBCOeddieepoberezkin
andauthoredMar 22, 2022
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 <2769109+epoberezkin@users.noreply.github.com>
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

+1-1
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)
Please sign in to comment.