File tree Expand file tree Collapse file tree 4 files changed +90
-0
lines changed Expand file tree Collapse file tree 4 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 8
8
"data" : " 1963-06-19T08:30:06.283185Z" ,
9
9
"valid" : true
10
10
},
11
+ {
12
+ "description" : " a valid date-time string without second fraction" ,
13
+ "data" : " 1963-06-19T08:30:06Z" ,
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " a valid date-time string with plus offset" ,
18
+ "data" : " 1937-01-01T12:00:27.87+00:20" ,
19
+ "valid" : true
20
+ },
21
+ {
22
+ "description" : " a valid date-time string with minus offset" ,
23
+ "data" : " 1990-12-31T15:59:50.123-08:00" ,
24
+ "valid" : true
25
+ },
26
+ {
27
+ "description" : " a invalid day in date-time string" ,
28
+ "data" : " 1990-02-31T15:59:60.123-08:00" ,
29
+ "valid" : false
30
+ },
31
+ {
32
+ "description" : " an invalid offset in date-time string" ,
33
+ "data" : " 1990-12-31T15:59:60-24:00" ,
34
+ "valid" : false
35
+ },
11
36
{
12
37
"description" : " an invalid date-time string" ,
13
38
"data" : " 06/19/1963 08:30:06 PST" ,
Original file line number Diff line number Diff line change 8
8
"data" : " 1963-06-19T08:30:06.283185Z" ,
9
9
"valid" : true
10
10
},
11
+ {
12
+ "description" : " a valid date-time string without second fraction" ,
13
+ "data" : " 1963-06-19T08:30:06Z" ,
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " a valid date-time string with plus offset" ,
18
+ "data" : " 1937-01-01T12:00:27.87+00:20" ,
19
+ "valid" : true
20
+ },
21
+ {
22
+ "description" : " a valid date-time string with minus offset" ,
23
+ "data" : " 1990-12-31T15:59:50.123-08:00" ,
24
+ "valid" : true
25
+ },
26
+ {
27
+ "description" : " a invalid day in date-time string" ,
28
+ "data" : " 1990-02-31T15:59:60.123-08:00" ,
29
+ "valid" : false
30
+ },
31
+ {
32
+ "description" : " an invalid offset in date-time string" ,
33
+ "data" : " 1990-12-31T15:59:60-24:00" ,
34
+ "valid" : false
35
+ },
11
36
{
12
37
"description" : " an invalid date-time string" ,
13
38
"data" : " 06/19/1963 08:30:06 PST" ,
Original file line number Diff line number Diff line change 14
14
"description" : " an invalid JSON document" ,
15
15
"data" : " {:}" ,
16
16
"valid" : false
17
+ },
18
+ {
19
+ "description" : " ignores non-strings" ,
20
+ "data" : 100 ,
21
+ "valid" : true
17
22
}
18
23
]
19
24
},
32
37
"description" : " an invalid base64 string (% is not a valid character)" ,
33
38
"data" : " eyJmb28iOi%iYmFyIn0K" ,
34
39
"valid" : false
40
+ },
41
+ {
42
+ "description" : " ignores non-strings" ,
43
+ "data" : 100 ,
44
+ "valid" : true
35
45
}
36
46
]
37
47
},
56
66
"description" : " an invalid base64 string that is valid JSON" ,
57
67
"data" : " {}" ,
58
68
"valid" : false
69
+ },
70
+ {
71
+ "description" : " ignores non-strings" ,
72
+ "data" : 100 ,
73
+ "valid" : true
59
74
}
60
75
]
61
76
}
Original file line number Diff line number Diff line change 8
8
"data" : " 1963-06-19T08:30:06.283185Z" ,
9
9
"valid" : true
10
10
},
11
+ {
12
+ "description" : " a valid date-time string without second fraction" ,
13
+ "data" : " 1963-06-19T08:30:06Z" ,
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " a valid date-time string with plus offset" ,
18
+ "data" : " 1937-01-01T12:00:27.87+00:20" ,
19
+ "valid" : true
20
+ },
21
+ {
22
+ "description" : " a valid date-time string with minus offset" ,
23
+ "data" : " 1990-12-31T15:59:50.123-08:00" ,
24
+ "valid" : true
25
+ },
26
+ {
27
+ "description" : " a invalid day in date-time string" ,
28
+ "data" : " 1990-02-31T15:59:60.123-08:00" ,
29
+ "valid" : false
30
+ },
31
+ {
32
+ "description" : " an invalid offset in date-time string" ,
33
+ "data" : " 1990-12-31T15:59:60-24:00" ,
34
+ "valid" : false
35
+ },
11
36
{
12
37
"description" : " an invalid date-time string" ,
13
38
"data" : " 06/19/1963 08:30:06 PST" ,
You can’t perform that action at this time.
0 commit comments