Skip to content

Commit

Permalink
Merge pull request #275 from dishuostec/patch-1
Browse files Browse the repository at this point in the history
Fix constraint of error
  • Loading branch information
bighappyface committed Jun 2, 2016
2 parents 5af8a31 + 3ba138c commit e2bea02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchema/Constraints/NumberConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function check($element, $schema = null, $path = null, $i = null)
$this->addError($path, "Must have a maximum value of " . $schema->maximum, 'maximum', array('maximum' => $schema->maximum,));
}
} else {
$this->addError($path, "Use of exclusiveMaximum requires presence of maximum", 'missingMinimum');
$this->addError($path, "Use of exclusiveMaximum requires presence of maximum", 'missingMaximum');
}
} else if (isset($schema->maximum) && $element > $schema->maximum) {
$this->addError($path, "Must have a maximum value of " . $schema->maximum, 'maximum', array('maximum' => $schema->maximum,));
Expand Down

0 comments on commit e2bea02

Please sign in to comment.