Skip to content

Commit fa77d19

Browse files
authored
Update Schema.php
Add ability to submit option to increase max depth of recursion.
1 parent 8e80f9b commit fa77d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function in($data, ?Context $options = null)
165165
$options->import = true;
166166

167167
if ($options->refResolver === null) {
168-
$options->refResolver = new RefResolver($data);
168+
$options->refResolver = new RefResolver($data, $options->maxNestLevel ?? 200);
169169
} else {
170170
$options->refResolver->setRootData($data);
171171
}

0 commit comments

Comments
 (0)