Debian Codegraph @

encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/json-pointer.json

raw
1 [
2 {
3 "description": "validation of JSON-pointers (JSON String Representation)",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
6 "format": "json-pointer"
7 },
8 "skip": {
9 "v3-roundtrip": "generation only supported in version https://json-schema.org/draft/2020-12/schema"
10 },
11 "tests": [
12 {
13 "description": "all string formats ignore integers",
14 "data": 12,
15 "valid": true,
16 "skip": {
17 "v3-roundtrip": "could not extract schema"
18 }
19 },
20 {
21 "description": "all string formats ignore floats",
22 "data": 13.7,
23 "valid": true,
24 "skip": {
25 "v3-roundtrip": "could not extract schema"
26 }
27 },
28 {
29 "description": "all string formats ignore objects",
30 "data": {},
31 "valid": true,
32 "skip": {
33 "v3-roundtrip": "could not extract schema"
34 }
35 },
36 {
37 "description": "all string formats ignore arrays",
38 "data": [],
39 "valid": true,
40 "skip": {
41 "v3-roundtrip": "could not extract schema"
42 }
43 },
44 {
45 "description": "all string formats ignore booleans",
46 "data": false,
47 "valid": true,
48 "skip": {
49 "v3-roundtrip": "could not extract schema"
50 }
51 },
52 {
53 "description": "all string formats ignore nulls",
54 "data": null,
55 "valid": true,
56 "skip": {
57 "v3-roundtrip": "could not extract schema"
58 }
59 },
60 {
61 "description": "a valid JSON-pointer",
62 "data": "/foo/bar~0/baz~1/%a",
63 "valid": true,
64 "skip": {
65 "v3-roundtrip": "could not extract schema"
66 }
67 },
68 {
69 "description": "not a valid JSON-pointer (~ not escaped)",
70 "data": "/foo/bar~",
71 "valid": false,
72 "skip": {
73 "v3": "unexpected success",
74 "v3-roundtrip": "could not extract schema"
75 }
76 },
77 {
78 "description": "valid JSON-pointer with empty segment",
79 "data": "/foo//bar",
80 "valid": true,
81 "skip": {
82 "v3-roundtrip": "could not extract schema"
83 }
84 },
85 {
86 "description": "valid JSON-pointer with the last empty segment",
87 "data": "/foo/bar/",
88 "valid": true,
89 "skip": {
90 "v3-roundtrip": "could not extract schema"
91 }
92 },
93 {
94 "description": "valid JSON-pointer as stated in RFC 6901 #1",
95 "data": "",
96 "valid": true,
97 "skip": {
98 "v3-roundtrip": "could not extract schema"
99 }
100 },
101 {
102 "description": "valid JSON-pointer as stated in RFC 6901 #2",
103 "data": "/foo",
104 "valid": true,
105 "skip": {
106 "v3-roundtrip": "could not extract schema"
107 }
108 },
109 {
110 "description": "valid JSON-pointer as stated in RFC 6901 #3",
111 "data": "/foo/0",
112 "valid": true,
113 "skip": {
114 "v3-roundtrip": "could not extract schema"
115 }
116 },
117 {
118 "description": "valid JSON-pointer as stated in RFC 6901 #4",
119 "data": "/",
120 "valid": true,
121 "skip": {
122 "v3-roundtrip": "could not extract schema"
123 }
124 },
125 {
126 "description": "valid JSON-pointer as stated in RFC 6901 #5",
127 "data": "/a~1b",
128 "valid": true,
129 "skip": {
130 "v3-roundtrip": "could not extract schema"
131 }
132 },
133 {
134 "description": "valid JSON-pointer as stated in RFC 6901 #6",
135 "data": "/c%d",
136 "valid": true,
137 "skip": {
138 "v3-roundtrip": "could not extract schema"
139 }
140 },
141 {
142 "description": "valid JSON-pointer as stated in RFC 6901 #7",
143 "data": "/e^f",
144 "valid": true,
145 "skip": {
146 "v3-roundtrip": "could not extract schema"
147 }
148 },
149 {
150 "description": "valid JSON-pointer as stated in RFC 6901 #8",
151 "data": "/g|h",
152 "valid": true,
153 "skip": {
154 "v3-roundtrip": "could not extract schema"
155 }
156 },
157 {
158 "description": "valid JSON-pointer as stated in RFC 6901 #9",
159 "data": "/i\\j",
160 "valid": true,
161 "skip": {
162 "v3-roundtrip": "could not extract schema"
163 }
164 },
165 {
166 "description": "valid JSON-pointer as stated in RFC 6901 #10",
167 "data": "/k\"l",
168 "valid": true,
169 "skip": {
170 "v3-roundtrip": "could not extract schema"
171 }
172 },
173 {
174 "description": "valid JSON-pointer as stated in RFC 6901 #11",
175 "data": "/ ",
176 "valid": true,
177 "skip": {
178 "v3-roundtrip": "could not extract schema"
179 }
180 },
181 {
182 "description": "valid JSON-pointer as stated in RFC 6901 #12",
183 "data": "/m~0n",
184 "valid": true,
185 "skip": {
186 "v3-roundtrip": "could not extract schema"
187 }
188 },
189 {
190 "description": "valid JSON-pointer used adding to the last array position",
191 "data": "/foo/-",
192 "valid": true,
193 "skip": {
194 "v3-roundtrip": "could not extract schema"
195 }
196 },
197 {
198 "description": "valid JSON-pointer (- used as object member name)",
199 "data": "/foo/-/bar",
200 "valid": true,
201 "skip": {
202 "v3-roundtrip": "could not extract schema"
203 }
204 },
205 {
206 "description": "valid JSON-pointer (multiple escaped characters)",
207 "data": "/~1~0~0~1~1",
208 "valid": true,
209 "skip": {
210 "v3-roundtrip": "could not extract schema"
211 }
212 },
213 {
214 "description": "valid JSON-pointer (escaped with fraction part) #1",
215 "data": "/~1.1",
216 "valid": true,
217 "skip": {
218 "v3-roundtrip": "could not extract schema"
219 }
220 },
221 {
222 "description": "valid JSON-pointer (escaped with fraction part) #2",
223 "data": "/~0.1",
224 "valid": true,
225 "skip": {
226 "v3-roundtrip": "could not extract schema"
227 }
228 },
229 {
230 "description": "not a valid JSON-pointer (URI Fragment Identifier) #1",
231 "data": "#",
232 "valid": false,
233 "skip": {
234 "v3": "unexpected success",
235 "v3-roundtrip": "could not extract schema"
236 }
237 },
238 {
239 "description": "not a valid JSON-pointer (URI Fragment Identifier) #2",
240 "data": "#/",
241 "valid": false,
242 "skip": {
243 "v3": "unexpected success",
244 "v3-roundtrip": "could not extract schema"
245 }
246 },
247 {
248 "description": "not a valid JSON-pointer (URI Fragment Identifier) #3",
249 "data": "#a",
250 "valid": false,
251 "skip": {
252 "v3": "unexpected success",
253 "v3-roundtrip": "could not extract schema"
254 }
255 },
256 {
257 "description": "not a valid JSON-pointer (some escaped, but not all) #1",
258 "data": "/~0~",
259 "valid": false,
260 "skip": {
261 "v3": "unexpected success",
262 "v3-roundtrip": "could not extract schema"
263 }
264 },
265 {
266 "description": "not a valid JSON-pointer (some escaped, but not all) #2",
267 "data": "/~0/~",
268 "valid": false,
269 "skip": {
270 "v3": "unexpected success",
271 "v3-roundtrip": "could not extract schema"
272 }
273 },
274 {
275 "description": "not a valid JSON-pointer (wrong escape character) #1",
276 "data": "/~2",
277 "valid": false,
278 "skip": {
279 "v3": "unexpected success",
280 "v3-roundtrip": "could not extract schema"
281 }
282 },
283 {
284 "description": "not a valid JSON-pointer (wrong escape character) #2",
285 "data": "/~-1",
286 "valid": false,
287 "skip": {
288 "v3": "unexpected success",
289 "v3-roundtrip": "could not extract schema"
290 }
291 },
292 {
293 "description": "not a valid JSON-pointer (multiple characters not escaped)",
294 "data": "/~~",
295 "valid": false,
296 "skip": {
297 "v3": "unexpected success",
298 "v3-roundtrip": "could not extract schema"
299 }
300 },
301 {
302 "description": "not a valid JSON-pointer (isn't empty nor starts with /) #1",
303 "data": "a",
304 "valid": false,
305 "skip": {
306 "v3": "unexpected success",
307 "v3-roundtrip": "could not extract schema"
308 }
309 },
310 {
311 "description": "not a valid JSON-pointer (isn't empty nor starts with /) #2",
312 "data": "0",
313 "valid": false,
314 "skip": {
315 "v3": "unexpected success",
316 "v3-roundtrip": "could not extract schema"
317 }
318 },
319 {
320 "description": "not a valid JSON-pointer (isn't empty nor starts with /) #3",
321 "data": "a/a",
322 "valid": false,
323 "skip": {
324 "v3": "unexpected success",
325 "v3-roundtrip": "could not extract schema"
326 }
327 }
328 ]
329 }
330 ]