We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640c572 commit 39224d3Copy full SHA for 39224d3
src/dataValidation.js
@@ -334,7 +334,7 @@ export default function DataValidator(schema) {
334
this.addError(coords, 'This value must not be less than ' + schema.minimum);
335
336
if ((schema.maximum || schema.maximum === 0) && data > schema.maximum)
337
- this.addError(coords, 'This value must not be greater than ' + schema.minimum);
+ this.addError(coords, 'This value must not be greater than ' + schema.maximum);
338
339
if ((schema.exclusiveMinimum || schema.exclusiveMinimum === 0) && data <= schema.exclusiveMinimum)
340
this.addError(coords, 'This value must be greater than ' + schema.exclusiveMinimum);
0 commit comments