diff --git a/lib/vocabularies/validation/limitProperties.ts b/lib/vocabularies/validation/limitProperties.ts index e72124a7e..07fffa8b3 100644 --- a/lib/vocabularies/validation/limitProperties.ts +++ b/lib/vocabularies/validation/limitProperties.ts @@ -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}}`, }