summaryrefslogtreecommitdiffstats
path: root/third_party/python/jsonschema/json/test-schema.json
blob: 670d2804cba07372789352b235c4fea85cea8c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "outputItem": {
            "type": "object",
            "properties": {
                "valid": {"type": "boolean"},
                "keywordLocation": {"type": "string"},
                "absoluteKeywordLocation": {
                    "type": "string",
                    "format": "uri"
                },
                "instanceLocation": {"type": "string"},
                "annotations": {
                    "type": "array",
                    "items": {"$ref": "#/definitions/outputItem"}
                },
                "errors": {
                    "type": "array",
                    "items": {"$ref": "#/definitions/outputItem"}
                }
            }
        }
    },
    "type": "array",
    "items": {
        "type": "object",
        "required": ["description", "schema", "tests"],
        "properties": {
            "description": {"type": "string"},
            "schema": {},
            "tests": {
                "type": "array",
                "items": {
                    "type": "object",
                    "required": ["description", "data", "valid"],
                    "properties": {
                        "description": {"type": "string"},
                        "data": {},
                        "valid": {"type": "boolean"},
                        "output": {
                            "type": "object",
                            "properties": {
                                "basic": {"$ref": "#/definitions/outputItem"},
                                "detailed": {"$ref": "#/definitions/outputItem"},
                                "verbose": {"$ref": "#/definitions/outputItem"}
                            },
                            "required": ["basic", "detailed", "verbose"]
                        }
                    },
                    "additionalProperties": false
                },
                "minItems": 1
            }
        },
        "additionalProperties": false,
        "minItems": 1
    }
}