Debian Codegraph @

ajv-formats/tests/extras/issues/1061_alternative_time_offsets.json

raw symbols SCIP
1 [
2 {
3 "description": "Support for alternative ISO-8601 timezone offset formats (#1061)",
4 "schema": {"format": "date-time"},
5 "tests": [
6 {
7 "description": "valid positive two digit",
8 "data": "2016-01-31T02:31:17+01",
9 "valid": true
10 },
11 {
12 "description": "valid negative two digit",
13 "data": "2016-01-31T02:31:17-01",
14 "valid": true
15 },
16 {
17 "description": "valid positive four digit no colon",
18 "data": "2016-01-31T02:31:17+0130",
19 "valid": true
20 },
21 {
22 "description": "valid negative four digit no colon",
23 "data": "2016-01-31T02:31:17-0130",
24 "valid": true
25 },
26 {
27 "description": "invalid positive three digit no colon",
28 "data": "2016-01-31T02:31:17+013",
29 "valid": false
30 },
31 {
32 "description": "invalid negative three digit no colon",
33 "data": "2016-01-31T02:31:17-013",
34 "valid": false
35 }
36 ]
37 },
38 {
39 "description": "Support for alternative ISO-8601 timezone offset formats (#1061)",
40 "schema": {"format": "time"},
41 "tests": [
42 {
43 "description": "valid positive two digit",
44 "data": "02:31:17+01",
45 "valid": true
46 },
47 {
48 "description": "valid negative two digit",
49 "data": "02:31:17-01",
50 "valid": true
51 },
52 {
53 "description": "valid positive four digit no colon",
54 "data": "02:31:17+0130",
55 "valid": true
56 },
57 {
58 "description": "valid negative four digit no colon",
59 "data": "02:31:17-0130",
60 "valid": true
61 },
62 {
63 "description": "invalid positive three digit no colon",
64 "data": "02:31:17+013",
65 "valid": false
66 },
67 {
68 "description": "invalid negative three digit no colon",
69 "data": "02:31:17-013",
70 "valid": false
71 }
72 ]
73 }
74 ]