Skip to content

Commit 864de0d

Browse files
committed
Core: Add suggestion for schemas to avoid infinite recursive loops
1 parent 0bc8f3c commit 864de0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jsonschema-core.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@
309309
A schema MUST NOT be run into an infinite loop against a schema. For example, if two schemas "#alice" and "#bob"
310310
both have an "allOf" property that refers to the other, a naive validator might get stuck in an infinite recursive
311311
loop trying to validate the instance.
312+
Schemas SHOULD NOT make use of infinite recursive nesting like this, the behavior is undefined.
312313
</t>
313314
</section>
314315

0 commit comments

Comments
 (0)