Debian Codegraph @

tests/output-extra/v1-extra/content/dynamic_ref_chain.json

raw symbols SCIP
1 [
2 {
3 "description": "dynamicRef recursion rebinds anchors",
4 "schema": {
5 "$schema": "https://json-schema.org/v1",
6 "$id": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0",
7 "$dynamicAnchor": "node",
8 "type": "object",
9 "properties": {
10 "value": {
11 "type": "integer"
12 },
13 "child": {
14 "$dynamicRef": "#node"
15 }
16 },
17 "required": [
18 "value"
19 ]
20 },
21 "tests": [
22 {
23 "description": "nested dynamicRef reports type error",
24 "data": {
25 "value": 1,
26 "child": {
27 "value": "boom"
28 }
29 },
30 "output": {
31 "list": {
32 "$id": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0/tests/0/list",
33 "const": {
34 "valid": false,
35 "details": [
36 {
37 "valid": false,
38 "evaluationPath": "",
39 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#",
40 "instanceLocation": ""
41 },
42 {
43 "valid": false,
44 "evaluationPath": "/properties",
45 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties",
46 "instanceLocation": "",
47 "droppedAnnotations": [
48 "child",
49 "value"
50 ]
51 },
52 {
53 "valid": false,
54 "evaluationPath": "/properties/child",
55 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child",
56 "instanceLocation": "/child"
57 },
58 {
59 "valid": false,
60 "evaluationPath": "/properties/child/$dynamicRef",
61 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef",
62 "instanceLocation": "/child"
63 },
64 {
65 "valid": false,
66 "evaluationPath": "/properties/child/$dynamicRef/properties",
67 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/properties",
68 "instanceLocation": "/child",
69 "droppedAnnotations": [
70 "value"
71 ]
72 },
73 {
74 "valid": false,
75 "evaluationPath": "/properties/child/$dynamicRef/properties/value",
76 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/properties/value",
77 "instanceLocation": "/child/value"
78 },
79 {
80 "valid": false,
81 "evaluationPath": "/properties/child/$dynamicRef/properties/value/type",
82 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/properties/value/type",
83 "instanceLocation": "/child/value",
84 "errors": {
85 "type": "\"boom\" is not of type \"integer\""
86 }
87 },
88 {
89 "valid": true,
90 "evaluationPath": "/properties/child/$dynamicRef/required",
91 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/required",
92 "instanceLocation": "/child"
93 },
94 {
95 "valid": true,
96 "evaluationPath": "/properties/child/$dynamicRef/type",
97 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/type",
98 "instanceLocation": "/child"
99 },
100 {
101 "valid": true,
102 "evaluationPath": "/properties/value",
103 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/value",
104 "instanceLocation": "/value"
105 },
106 {
107 "valid": true,
108 "evaluationPath": "/properties/value/type",
109 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/value/type",
110 "instanceLocation": "/value"
111 },
112 {
113 "valid": true,
114 "evaluationPath": "/required",
115 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/required",
116 "instanceLocation": ""
117 },
118 {
119 "valid": true,
120 "evaluationPath": "/type",
121 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/type",
122 "instanceLocation": ""
123 }
124 ]
125 }
126 },
127 "hierarchical": {
128 "$id": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0/tests/0/hierarchical",
129 "const": {
130 "valid": false,
131 "evaluationPath": "",
132 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#",
133 "instanceLocation": "",
134 "details": [
135 {
136 "valid": false,
137 "evaluationPath": "/properties",
138 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties",
139 "instanceLocation": "",
140 "droppedAnnotations": [
141 "child",
142 "value"
143 ],
144 "details": [
145 {
146 "valid": false,
147 "evaluationPath": "/properties/child",
148 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child",
149 "instanceLocation": "/child",
150 "details": [
151 {
152 "valid": false,
153 "evaluationPath": "/properties/child/$dynamicRef",
154 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef",
155 "instanceLocation": "/child",
156 "details": [
157 {
158 "valid": false,
159 "evaluationPath": "/properties/child/$dynamicRef/properties",
160 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/properties",
161 "instanceLocation": "/child",
162 "droppedAnnotations": [
163 "value"
164 ],
165 "details": [
166 {
167 "valid": false,
168 "evaluationPath": "/properties/child/$dynamicRef/properties/value",
169 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/properties/value",
170 "instanceLocation": "/child/value",
171 "details": [
172 {
173 "valid": false,
174 "evaluationPath": "/properties/child/$dynamicRef/properties/value/type",
175 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/properties/value/type",
176 "instanceLocation": "/child/value",
177 "errors": {
178 "type": "\"boom\" is not of type \"integer\""
179 }
180 }
181 ]
182 }
183 ]
184 },
185 {
186 "valid": true,
187 "evaluationPath": "/properties/child/$dynamicRef/required",
188 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/required",
189 "instanceLocation": "/child"
190 },
191 {
192 "valid": true,
193 "evaluationPath": "/properties/child/$dynamicRef/type",
194 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/child/$dynamicRef/type",
195 "instanceLocation": "/child"
196 }
197 ]
198 }
199 ]
200 },
201 {
202 "valid": true,
203 "evaluationPath": "/properties/value",
204 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/value",
205 "instanceLocation": "/value",
206 "details": [
207 {
208 "valid": true,
209 "evaluationPath": "/properties/value/type",
210 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/properties/value/type",
211 "instanceLocation": "/value"
212 }
213 ]
214 }
215 ]
216 },
217 {
218 "valid": true,
219 "evaluationPath": "/required",
220 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/required",
221 "instanceLocation": ""
222 },
223 {
224 "valid": true,
225 "evaluationPath": "/type",
226 "schemaLocation": "https://json-schema.org/tests/content/v1-extra/dynamic_ref_chain/0#/type",
227 "instanceLocation": ""
228 }
229 ]
230 }
231 }
232 }
233 }
234 ]
235 }
236 ]