1{
2    "$schema": "http://json-schema.org/draft-04/schema#",
3
4    "type": "object",
5    "properties": {
6        "tests": {
7            "type": "array",
8            "items": {
9                "$ref": "#/definitions/test"
10            }
11        },
12        "outputs": {
13            "type": "object",
14            "properties": {
15                "syslog_file": { "type": "string" }
16            },
17        }
18    },
19    "required": ["tests"],
20
21    "definitions": {
22        "test": {
23            "type": "object",
24            "properties": {
25                "name": { "type": "string" },
26                "output_file": { "type": "string" },
27                "result": {
28                    "type": "string",
29                    "enum": ["PASS", "FAIL"]
30                },
31                "koid": { "type": "integer" },
32                "data_sinks": {
33                    "type": "object",
34                    "additionalProperties": {
35                        "type": "array",
36                        "items": {
37                            "type": "object",
38                            "properties": {
39                                "dump_file": { "type": "string" }
40                            },
41                            "required": [ "dump_file" ]
42                        }
43                    }
44                }
45            },
46            "required": [ "name", "output_file", "result" ]
47        }
48    }
49}
50