We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01949f6 commit 43e6b77Copy full SHA for 43e6b77
src/JsonSchema/RefResolver.php
@@ -27,6 +27,11 @@ class RefResolver
27
* @var integer
28
*/
29
protected static $depth = 0;
30
+ /**
31
+ * maximum references depth
32
+ * @var integer
33
+ */
34
+ public static $maxDepth = 7;
35
36
/**
37
* @var UriRetrieverInterface
@@ -88,7 +93,7 @@ public function getUriRetriever()
88
93
89
94
public function resolve($schema, $sourceUri = null)
90
95
{
91
- if (self::$depth > 7) {
96
+ if (self::$depth > self::$maxDepth) {
92
97
return;
98
}
99
++self::$depth;
0 commit comments