OLD | NEW |
1 { | 1 { |
2 "$schema": "http://json-schema.org/draft-04/schema#", | 2 "$schema": "http://json-schema.org/draft-04/schema#", |
3 "description": "An event emitted by the test package's JSON reporter", | 3 "description": "An event emitted by the test package's JSON reporter", |
4 | 4 |
5 "definitions": { | 5 "definitions": { |
6 "Test": { | 6 "Test": { |
7 "required": ["id", "name", "metadata"], | 7 "required": ["id", "name", "metadata"], |
8 "properties": { | 8 "properties": { |
9 "id": {"type": "integer", "minimum": 0}, | 9 "id": {"type": "integer", "minimum": 0}, |
10 "name": {"type": "string"}, | 10 "name": {"type": "string"}, |
11 "metadata": {"$ref": "#/definitions/Metadata"} | 11 "metadata": {"$ref": "#/definitions/Metadata"} |
12 } | 12 } |
13 }, | 13 }, |
14 | 14 |
| 15 "Group": { |
| 16 "required": ["id", "name"], |
| 17 "properties": { |
| 18 "id": {"type": "integer", "minimum": 0}, |
| 19 "parentID": { |
| 20 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}] |
| 21 }, |
| 22 "name": { |
| 23 "oneOf": [{"type": "string"}, {"type": "null"}], |
| 24 }, |
| 25 "metadata": {"$ref": "#/definitions/Metadata"} |
| 26 } |
| 27 }, |
| 28 |
15 "Metadata": { | 29 "Metadata": { |
16 "required": ["skip", "skipReason"], | 30 "required": ["skip", "skipReason"], |
17 "properties": { | 31 "properties": { |
18 "skip": {"type": "boolean"}, | 32 "skip": {"type": "boolean"}, |
19 "skipReason": { | 33 "skipReason": { |
20 "oneOf": [{"type": "string"}, {"type": "null"}] | 34 "oneOf": [{"type": "string"}, {"type": "null"}] |
21 } | 35 } |
22 } | 36 } |
23 } | 37 } |
24 }, | 38 }, |
(...skipping 20 matching lines...) Expand all Loading... |
45 { | 59 { |
46 "title": "TestStartEvent", | 60 "title": "TestStartEvent", |
47 "required": ["test"], | 61 "required": ["test"], |
48 "properties": { | 62 "properties": { |
49 "type": {"enum": ["testStart"]}, | 63 "type": {"enum": ["testStart"]}, |
50 "test": {"$ref": "#/definitions/Test"} | 64 "test": {"$ref": "#/definitions/Test"} |
51 } | 65 } |
52 }, | 66 }, |
53 | 67 |
54 { | 68 { |
| 69 "title": "GroupEvent", |
| 70 "required": ["group"], |
| 71 "properties": { |
| 72 "type": {"enum": ["group"]}, |
| 73 "group": {"$ref": "#/definitions/Group"} |
| 74 } |
| 75 }, |
| 76 |
| 77 { |
55 "title": "PrintEvent", | 78 "title": "PrintEvent", |
56 "required": ["message"], | 79 "required": ["message"], |
57 "properties": { | 80 "properties": { |
58 "type": {"enum": ["print"]}, | 81 "type": {"enum": ["print"]}, |
59 "message": {"type": "string"} | 82 "message": {"type": "string"} |
60 } | 83 } |
61 }, | 84 }, |
62 | 85 |
63 { | 86 { |
64 "title": "ErrorEvent", | 87 "title": "ErrorEvent", |
(...skipping 25 matching lines...) Expand all Loading... |
90 "type": {"enum": ["done"]}, | 113 "type": {"enum": ["done"]}, |
91 "success": {"type": "boolean"} | 114 "success": {"type": "boolean"} |
92 } | 115 } |
93 }, | 116 }, |
94 | 117 |
95 { | 118 { |
96 "title": "FutureEvent", | 119 "title": "FutureEvent", |
97 "properties": { | 120 "properties": { |
98 "type": { | 121 "type": { |
99 "not": { | 122 "not": { |
100 "enum": ["start", "testStart", "print", "error", "testDone", "done"] | 123 "enum": [ |
| 124 "start", "testStart", "group", "print", "error", "testDone", "done
" |
| 125 ] |
101 } | 126 } |
102 } | 127 } |
103 } | 128 } |
104 } | 129 } |
105 ] | 130 ] |
106 } | 131 } |
OLD | NEW |