Debian Codegraph @

t/additional-tests-draft2020-12/anchor.json

raw
1 [
2 {
3 "description": "non-schema object containing an $anchor property",
4 "schema": {
5 "$defs": {
6 "const_not_anchor": {
7 "const": {
8 "$anchor": "not_a_real_anchor"
9 }
10 }
11 },
12 "if": {
13 "const": "skip not_a_real_anchor"
14 },
15 "then": true,
16 "else" : {
17 "$ref": "#/$defs/const_not_anchor"
18 }
19 },
20 "tests": [
21 {
22 "description": "skip traversing definition for a valid result",
23 "data": "skip not_a_real_anchor",
24 "valid": true
25 },
26 {
27 "description": "const at const_not_anchor does not match",
28 "data": 1,
29 "valid": false
30 }
31 ]
32 }
33 ]