1263646Sbapt[
2263646Sbapt    {
3263646Sbapt        "description": "a schema given for items",
4263646Sbapt        "schema": {
5263646Sbapt            "items": {"type": "integer"}
6263646Sbapt        },
7263646Sbapt        "tests": [
8263646Sbapt            {
9263646Sbapt                "description": "valid items",
10263646Sbapt                "data": [ 1, 2, 3 ],
11263646Sbapt                "valid": true
12263646Sbapt            },
13263646Sbapt            {
14263646Sbapt                "description": "wrong type of items",
15263646Sbapt                "data": [1, "x"],
16263646Sbapt                "valid": false
17263646Sbapt            },
18263646Sbapt            {
19263646Sbapt                "description": "ignores non-arrays",
20263646Sbapt                "data": {"foo" : "bar"},
21263646Sbapt                "valid": true
22263646Sbapt            }
23263646Sbapt        ]
24263646Sbapt    },
25263646Sbapt    {
26263646Sbapt        "description": "an array of schemas for items",
27263646Sbapt        "schema": {
28263646Sbapt            "items": [
29263646Sbapt                {"type": "integer"},
30263646Sbapt                {"type": "string"}
31263646Sbapt            ]
32263646Sbapt        },
33263646Sbapt        "tests": [
34263646Sbapt            {
35263646Sbapt                "description": "correct types",
36263646Sbapt                "data": [ 1, "foo" ],
37263646Sbapt                "valid": true
38263646Sbapt            },
39263646Sbapt            {
40263646Sbapt                "description": "wrong types",
41263646Sbapt                "data": [ "foo", 1 ],
42263646Sbapt                "valid": false
43263646Sbapt            }
44263646Sbapt        ]
45263646Sbapt    }
46263646Sbapt]
47