File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 2121 },
2222 {
2323 "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" ,
2448 "schema" : {
2549 "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
2650 "items" : {},
Original file line number Diff line number Diff line change 2020 },
2121 {
2222 "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" ,
2346 "schema" : {
2447 "items" : {},
2548 "additionalItems" : false
Original file line number Diff line number Diff line change 2020 },
2121 {
2222 "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" ,
2346 "schema" : {
2447 "items" : {},
2548 "additionalItems" : false
You can’t perform that action at this time.
0 commit comments