Skip to content

Commit ef31f48

Browse files
authored
Update Context.php
Address P0 Issue by adding $maxNestLevel public property
1 parent f90ce82 commit ef31f48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Context.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class Context extends MagicMap
5151

5252
public $isRef = false;
5353

54+
/** @var int property max recursive nesting depth */
55+
public $maxNestLevel = 200;
56+
5457
/**
5558
* Dereference $ref unless there is a $ref property defined with format not equal to `uri-reference`.
5659
* Default JSON Schema behavior is to dereference only if there is a $ref property defined with format
@@ -134,4 +137,4 @@ public function withDefault()
134137
}
135138

136139

137-
}
140+
}

0 commit comments

Comments
 (0)