Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 73134cf

Browse files
committed
Clarify acceptable vs. unacceptable recursions
1 parent ac79e3e commit 73134cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/structuring.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,10 @@ For example, you might have a ``person`` schema that has an array of ``children`
206206
}
207207
}
208208

209-
However, a loop of ``$ref`` schemas referring to one another could cause
210-
infinite recursion in the validator, and is explicitly disallowed.
209+
Above, we created a schema that refers to another part of itself, effectively
210+
creating a "loop" in the validator, which is both allowed and useful. Note,
211+
however, that a loop of ``$ref`` schemas referring to one another could cause an
212+
infinite loop in the resolver, and is explicitly disallowed.
211213

212214
.. schema_example::
213215

0 commit comments

Comments
 (0)