Debian Codegraph @

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

raw
1 [
2 {
3 "description": "validation of date strings",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
6 "format": "date"
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 date string",
62 "data": "1963-06-19",
63 "valid": true,
64 "skip": {
65 "v3-roundtrip": "could not extract schema"
66 }
67 },
68 {
69 "description": "a valid date string with 31 days in January",
70 "data": "2020-01-31",
71 "valid": true,
72 "skip": {
73 "v3-roundtrip": "could not extract schema"
74 }
75 },
76 {
77 "description": "a invalid date string with 32 days in January",
78 "data": "2020-01-32",
79 "valid": false,
80 "skip": {
81 "v3-roundtrip": "could not extract schema"
82 }
83 },
84 {
85 "description": "a valid date string with 28 days in February (normal)",
86 "data": "2021-02-28",
87 "valid": true,
88 "skip": {
89 "v3-roundtrip": "could not extract schema"
90 }
91 },
92 {
93 "description": "a invalid date string with 29 days in February (normal)",
94 "data": "2021-02-29",
95 "valid": false,
96 "skip": {
97 "v3-roundtrip": "could not extract schema"
98 }
99 },
100 {
101 "description": "a valid date string with 29 days in February (leap)",
102 "data": "2020-02-29",
103 "valid": true,
104 "skip": {
105 "v3-roundtrip": "could not extract schema"
106 }
107 },
108 {
109 "description": "a invalid date string with 30 days in February (leap)",
110 "data": "2020-02-30",
111 "valid": false,
112 "skip": {
113 "v3-roundtrip": "could not extract schema"
114 }
115 },
116 {
117 "description": "a valid date string with 31 days in March",
118 "data": "2020-03-31",
119 "valid": true,
120 "skip": {
121 "v3-roundtrip": "could not extract schema"
122 }
123 },
124 {
125 "description": "a invalid date string with 32 days in March",
126 "data": "2020-03-32",
127 "valid": false,
128 "skip": {
129 "v3-roundtrip": "could not extract schema"
130 }
131 },
132 {
133 "description": "a valid date string with 30 days in April",
134 "data": "2020-04-30",
135 "valid": true,
136 "skip": {
137 "v3-roundtrip": "could not extract schema"
138 }
139 },
140 {
141 "description": "a invalid date string with 31 days in April",
142 "data": "2020-04-31",
143 "valid": false,
144 "skip": {
145 "v3-roundtrip": "could not extract schema"
146 }
147 },
148 {
149 "description": "a valid date string with 31 days in May",
150 "data": "2020-05-31",
151 "valid": true,
152 "skip": {
153 "v3-roundtrip": "could not extract schema"
154 }
155 },
156 {
157 "description": "a invalid date string with 32 days in May",
158 "data": "2020-05-32",
159 "valid": false,
160 "skip": {
161 "v3-roundtrip": "could not extract schema"
162 }
163 },
164 {
165 "description": "a valid date string with 30 days in June",
166 "data": "2020-06-30",
167 "valid": true,
168 "skip": {
169 "v3-roundtrip": "could not extract schema"
170 }
171 },
172 {
173 "description": "a invalid date string with 31 days in June",
174 "data": "2020-06-31",
175 "valid": false,
176 "skip": {
177 "v3-roundtrip": "could not extract schema"
178 }
179 },
180 {
181 "description": "a valid date string with 31 days in July",
182 "data": "2020-07-31",
183 "valid": true,
184 "skip": {
185 "v3-roundtrip": "could not extract schema"
186 }
187 },
188 {
189 "description": "a invalid date string with 32 days in July",
190 "data": "2020-07-32",
191 "valid": false,
192 "skip": {
193 "v3-roundtrip": "could not extract schema"
194 }
195 },
196 {
197 "description": "a valid date string with 31 days in August",
198 "data": "2020-08-31",
199 "valid": true,
200 "skip": {
201 "v3-roundtrip": "could not extract schema"
202 }
203 },
204 {
205 "description": "a invalid date string with 32 days in August",
206 "data": "2020-08-32",
207 "valid": false,
208 "skip": {
209 "v3-roundtrip": "could not extract schema"
210 }
211 },
212 {
213 "description": "a valid date string with 30 days in September",
214 "data": "2020-09-30",
215 "valid": true,
216 "skip": {
217 "v3-roundtrip": "could not extract schema"
218 }
219 },
220 {
221 "description": "a invalid date string with 31 days in September",
222 "data": "2020-09-31",
223 "valid": false,
224 "skip": {
225 "v3-roundtrip": "could not extract schema"
226 }
227 },
228 {
229 "description": "a valid date string with 31 days in October",
230 "data": "2020-10-31",
231 "valid": true,
232 "skip": {
233 "v3-roundtrip": "could not extract schema"
234 }
235 },
236 {
237 "description": "a invalid date string with 32 days in October",
238 "data": "2020-10-32",
239 "valid": false,
240 "skip": {
241 "v3-roundtrip": "could not extract schema"
242 }
243 },
244 {
245 "description": "a valid date string with 30 days in November",
246 "data": "2020-11-30",
247 "valid": true,
248 "skip": {
249 "v3-roundtrip": "could not extract schema"
250 }
251 },
252 {
253 "description": "a invalid date string with 31 days in November",
254 "data": "2020-11-31",
255 "valid": false,
256 "skip": {
257 "v3-roundtrip": "could not extract schema"
258 }
259 },
260 {
261 "description": "a valid date string with 31 days in December",
262 "data": "2020-12-31",
263 "valid": true,
264 "skip": {
265 "v3-roundtrip": "could not extract schema"
266 }
267 },
268 {
269 "description": "a invalid date string with 32 days in December",
270 "data": "2020-12-32",
271 "valid": false,
272 "skip": {
273 "v3-roundtrip": "could not extract schema"
274 }
275 },
276 {
277 "description": "a invalid date string with invalid month",
278 "data": "2020-13-01",
279 "valid": false,
280 "skip": {
281 "v3-roundtrip": "could not extract schema"
282 }
283 },
284 {
285 "description": "an invalid date string",
286 "data": "06/19/1963",
287 "valid": false,
288 "skip": {
289 "v3-roundtrip": "could not extract schema"
290 }
291 },
292 {
293 "description": "only RFC3339 not all of ISO 8601 are valid",
294 "data": "2013-350",
295 "valid": false,
296 "skip": {
297 "v3-roundtrip": "could not extract schema"
298 }
299 },
300 {
301 "description": "non-padded month dates are not valid",
302 "data": "1998-1-20",
303 "valid": false,
304 "skip": {
305 "v3-roundtrip": "could not extract schema"
306 }
307 },
308 {
309 "description": "non-padded day dates are not valid",
310 "data": "1998-01-1",
311 "valid": false,
312 "skip": {
313 "v3-roundtrip": "could not extract schema"
314 }
315 },
316 {
317 "description": "invalid month",
318 "data": "1998-13-01",
319 "valid": false,
320 "skip": {
321 "v3-roundtrip": "could not extract schema"
322 }
323 },
324 {
325 "description": "invalid month-day combination",
326 "data": "1998-04-31",
327 "valid": false,
328 "skip": {
329 "v3-roundtrip": "could not extract schema"
330 }
331 },
332 {
333 "description": "2021 is not a leap year",
334 "data": "2021-02-29",
335 "valid": false,
336 "skip": {
337 "v3-roundtrip": "could not extract schema"
338 }
339 },
340 {
341 "description": "2020 is a leap year",
342 "data": "2020-02-29",
343 "valid": true,
344 "skip": {
345 "v3-roundtrip": "could not extract schema"
346 }
347 },
348 {
349 "description": "invalid non-ASCII '৪' (a Bengali 4)",
350 "data": "1963-06-1৪",
351 "valid": false,
352 "skip": {
353 "v3-roundtrip": "could not extract schema"
354 }
355 },
356 {
357 "description": "ISO8601 / non-RFC3339: YYYYMMDD without dashes (2023-03-28)",
358 "data": "20230328",
359 "valid": false,
360 "skip": {
361 "v3-roundtrip": "could not extract schema"
362 }
363 },
364 {
365 "description": "ISO8601 / non-RFC3339: week number implicit day of week (2023-01-02)",
366 "data": "2023-W01",
367 "valid": false,
368 "skip": {
369 "v3-roundtrip": "could not extract schema"
370 }
371 },
372 {
373 "description": "ISO8601 / non-RFC3339: week number with day of week (2023-03-28)",
374 "data": "2023-W13-2",
375 "valid": false,
376 "skip": {
377 "v3-roundtrip": "could not extract schema"
378 }
379 },
380 {
381 "description": "ISO8601 / non-RFC3339: week number rollover to next year (2023-01-01)",
382 "data": "2022W527",
383 "valid": false,
384 "skip": {
385 "v3-roundtrip": "could not extract schema"
386 }
387 }
388 ]
389 }
390 ]