Resolve a $ref in a schema against a root document.
Returns the original schema if no $ref is present.
Returns an unknown-schema placeholder on cycle or depth exceeded.
The depth bound is derived from the number of distinct $ref strings
in the root document — a chain longer than that count is necessarily
cyclic. When maxDepth is not provided, a reasonable default is used.
Resolve a
$refin a schema against a root document. Returns the original schema if no$refis present. Returns an unknown-schema placeholder on cycle or depth exceeded.The depth bound is derived from the number of distinct
$refstrings in the root document — a chain longer than that count is necessarily cyclic. WhenmaxDepthis not provided, a reasonable default is used.