We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b984cd + fde6ca1 commit 38af001Copy full SHA for 38af001
src/index.ts
@@ -142,7 +142,7 @@ export class Cabidela {
142
if (needle.schema.hasOwnProperty("maxProperties")) {
143
if (Object.keys(needle.payload).length > needle.schema.maxProperties) {
144
this.throw(
145
- `maxProperties at '${pathToString(needle.path)}' is ${needle.schema.minProperties}, got ${Object.keys(needle.payload).length}`,
+ `maxProperties at '${pathToString(needle.path)}' is ${needle.schema.maxProperties}, got ${Object.keys(needle.payload).length}`,
146
needle,
147
);
148
}
0 commit comments