Skip to content

Commit aaf78b2

Browse files
committed
Fix error when additionalProperties validation is ignored.
1 parent 28de366 commit aaf78b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Constraints/UndefinedConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function validateTypes($value, $schema = null, $path = null, $i = null)
6565
}
6666

6767
// check object
68-
if (is_object($value) && (isset($schema->properties) || isset($schema->patternProperties))) {
68+
if (is_object($value) && (isset($schema->properties) || isset($schema->patternProperties) || isset($schema->additionalProperties))) {
6969
$this->checkObject(
7070
$value,
7171
isset($schema->properties) ? $schema->properties : null,

0 commit comments

Comments
 (0)