Files
jspg/validator/tests/Extra-Test-Suite/tests/draft2020-12/infinite-loop-detection.json
2025-09-30 01:10:58 -04:00

27 lines
687 B
JSON

[
{
"description": "guard against infinite recursion",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"alice": {
"$anchor": "alice",
"allOf": [{"$ref": "#bob"}]
},
"bob": {
"$anchor": "bob",
"allOf": [{"$ref": "#alice"}]
}
},
"$ref": "#alice"
},
"tests": [
{
"description": "infinite recursion detected",
"data": {},
"valid": false
}
]
}
]