Skip to content

Commit

Permalink
Update limitProperties.ts (#1918)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
TIBCOeddie and epoberezkin committed Mar 22, 2022
1 parent 3ec588b commit a5119ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vocabularies/validation/limitProperties.ts
Expand Up @@ -5,7 +5,7 @@ import {_, str, operators} from "../../compile/codegen"
const error: KeywordErrorDefinition = {
message({keyword, schemaCode}) {
const comp = keyword === "maxProperties" ? "more" : "fewer"
return str`must NOT have ${comp} than ${schemaCode} items`
return str`must NOT have ${comp} than ${schemaCode} properties`
},
params: ({schemaCode}) => _`{limit: ${schemaCode}}`,
}
Expand Down

0 comments on commit a5119ef

Please sign in to comment.