Skip to content

Commit edcdde2

Browse files
committed
fix: fix for minimum keyword
1 parent 80337e3 commit edcdde2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/JsonSchema/Constraints/Drafts/Draft06/MinimumConstraint.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function check(&$value, $schema = null, ?JsonPointer $path = null, $i = n
2525
return;
2626
}
2727

28+
if (! is_numeric($value)) {
29+
return;
30+
}
31+
2832
if ($value >= $schema->minimum) {
2933
return;
3034
}

0 commit comments

Comments
 (0)