File tree 3 files changed +70
-0
lines changed
3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 21
21
},
22
22
{
23
23
"description" : " when items is schema, additionalItems does nothing" ,
24
+ "schema" : {
25
+ "$schema" :" https://json-schema.org/draft/2019-09/schema" ,
26
+ "items" : {
27
+ "type" : " integer"
28
+ },
29
+ "additionalItems" : {
30
+ "type" : " string"
31
+ }
32
+ },
33
+ "tests" : [
34
+ {
35
+ "description" : " valid with a array of type integers" ,
36
+ "data" : [1 ,2 ,3 ],
37
+ "valid" : true
38
+ },
39
+ {
40
+ "description" : " invalid with a array of mixed types" ,
41
+ "data" : [1 ," 2" ," 3" ],
42
+ "valid" : false
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "description" : " when items is schema, boolean additionalItems does nothing" ,
24
48
"schema" : {
25
49
"$schema" : " https://json-schema.org/draft/2019-09/schema" ,
26
50
"items" : {},
Original file line number Diff line number Diff line change 20
20
},
21
21
{
22
22
"description" : " when items is schema, additionalItems does nothing" ,
23
+ "schema" : {
24
+ "items" : {
25
+ "type" : " integer"
26
+ },
27
+ "additionalItems" : {
28
+ "type" : " string"
29
+ }
30
+ },
31
+ "tests" : [
32
+ {
33
+ "description" : " valid with a array of type integers" ,
34
+ "data" : [1 ,2 ,3 ],
35
+ "valid" : true
36
+ },
37
+ {
38
+ "description" : " invalid with a array of mixed types" ,
39
+ "data" : [1 ," 2" ," 3" ],
40
+ "valid" : false
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "description" : " when items is schema, boolean additionalItems does nothing" ,
23
46
"schema" : {
24
47
"items" : {},
25
48
"additionalItems" : false
Original file line number Diff line number Diff line change 20
20
},
21
21
{
22
22
"description" : " when items is schema, additionalItems does nothing" ,
23
+ "schema" : {
24
+ "items" : {
25
+ "type" : " integer"
26
+ },
27
+ "additionalItems" : {
28
+ "type" : " string"
29
+ }
30
+ },
31
+ "tests" : [
32
+ {
33
+ "description" : " valid with a array of type integers" ,
34
+ "data" : [1 ,2 ,3 ],
35
+ "valid" : true
36
+ },
37
+ {
38
+ "description" : " invalid with a array of mixed types" ,
39
+ "data" : [1 ," 2" ," 3" ],
40
+ "valid" : false
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "description" : " when items is schema, boolean additionalItems does nothing" ,
23
46
"schema" : {
24
47
"items" : {},
25
48
"additionalItems" : false
You can’t perform that action at this time.
0 commit comments