Skip to content

Commit e2bea02

Browse files
committed
Merge pull request #275 from dishuostec/patch-1
Fix constraint of error
2 parents 5af8a31 + 3ba138c commit e2bea02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Constraints/NumberConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function check($element, $schema = null, $path = null, $i = null)
4646
$this->addError($path, "Must have a maximum value of " . $schema->maximum, 'maximum', array('maximum' => $schema->maximum,));
4747
}
4848
} else {
49-
$this->addError($path, "Use of exclusiveMaximum requires presence of maximum", 'missingMinimum');
49+
$this->addError($path, "Use of exclusiveMaximum requires presence of maximum", 'missingMaximum');
5050
}
5151
} else if (isset($schema->maximum) && $element > $schema->maximum) {
5252
$this->addError($path, "Must have a maximum value of " . $schema->maximum, 'maximum', array('maximum' => $schema->maximum,));

0 commit comments

Comments
 (0)