| 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", "groupIDs", "metadata"], | 7 "required": ["id", "name", "suiteID", "groupIDs", "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 "suiteID": {"type": "integer", "minimum": 0}, |
| 11 "groupIDs": { | 12 "groupIDs": { |
| 12 "type": "array", | 13 "type": "array", |
| 13 "items": {"type": "integer", "minimum": 0} | 14 "items": {"type": "integer", "minimum": 0} |
| 14 }, | 15 }, |
| 15 "metadata": {"$ref": "#/definitions/Metadata"} | 16 "metadata": {"$ref": "#/definitions/Metadata"} |
| 16 } | 17 } |
| 17 }, | 18 }, |
| 18 | 19 |
| 20 "Suite": { |
| 21 "required": ["id", "platform", "path"], |
| 22 "properties": { |
| 23 "id": {"type": "integer", "minimum": 0}, |
| 24 "platform": { |
| 25 "oneOf": [{"type": "string"}, {"type": "null"}] |
| 26 }, |
| 27 "path": {"type": "string"} |
| 28 } |
| 29 }, |
| 30 |
| 19 "Group": { | 31 "Group": { |
| 20 "required": ["id", "name"], | 32 "required": ["id", "name", "suiteID"], |
| 21 "properties": { | 33 "properties": { |
| 22 "id": {"type": "integer", "minimum": 0}, | 34 "id": {"type": "integer", "minimum": 0}, |
| 35 "suiteID": {"type": "integer", "minimum": 0}, |
| 23 "parentID": { | 36 "parentID": { |
| 24 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}] | 37 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}] |
| 25 }, | 38 }, |
| 26 "name": { | 39 "name": { |
| 27 "oneOf": [{"type": "string"}, {"type": "null"}], | 40 "oneOf": [{"type": "string"}, {"type": "null"}] |
| 28 }, | 41 }, |
| 29 "metadata": {"$ref": "#/definitions/Metadata"} | 42 "metadata": {"$ref": "#/definitions/Metadata"} |
| 30 } | 43 } |
| 31 }, | 44 }, |
| 32 | 45 |
| 33 "Metadata": { | 46 "Metadata": { |
| 34 "required": ["skip", "skipReason"], | 47 "required": ["skip", "skipReason"], |
| 35 "properties": { | 48 "properties": { |
| 36 "skip": {"type": "boolean"}, | 49 "skip": {"type": "boolean"}, |
| 37 "skipReason": { | 50 "skipReason": { |
| 38 "oneOf": [{"type": "string"}, {"type": "null"}] | 51 "oneOf": [{"type": "string"}, {"type": "null"}] |
| 39 } | 52 } |
| 40 } | 53 } |
| 41 } | 54 } |
| 42 }, | 55 }, |
| 43 | 56 |
| 44 "required": ["type", "time"], | 57 "required": ["type", "time"], |
| 45 "properties": { | 58 "properties": { |
| 46 "time": {"type": "integer", "minimum": 0}, | 59 "time": {"type": "integer", "minimum": 0}, |
| 47 "type": {"type": "string"} | 60 "type": {"type": "string"} |
| 48 }, | 61 }, |
| 49 | 62 |
| 50 "oneOf": [ | 63 "oneOf": [ |
| 51 { | 64 { |
| 52 "title": "StartEvent", | 65 "title": "StartEvent", |
| 53 "required": ["protocolVersion", "runnerVersion"], | 66 "required": ["protocolVersion", "runnerVersion"], |
| 54 "properties": { | 67 "properties": { |
| 55 "type": {"enum": ["start"]}, | 68 "type": {"enum": ["start"]}, |
| 56 "protocolVersion": {"type": "string", "pattern": "^0\.1\."}, | 69 "protocolVersion": {"type": "string", "pattern": "^0\\.1\\."}, |
| 57 "runnerVersion": { | 70 "runnerVersion": { |
| 58 "oneOf": [{"type": "string"}, {"type": "null"}] | 71 "oneOf": [{"type": "string"}, {"type": "null"}] |
| 59 } | 72 } |
| 60 } | 73 } |
| 61 }, | 74 }, |
| 62 | 75 |
| 63 { | 76 { |
| 64 "title": "TestStartEvent", | 77 "title": "TestStartEvent", |
| 65 "required": ["test"], | 78 "required": ["test"], |
| 66 "properties": { | 79 "properties": { |
| 67 "type": {"enum": ["testStart"]}, | 80 "type": {"enum": ["testStart"]}, |
| 68 "test": {"$ref": "#/definitions/Test"} | 81 "test": {"$ref": "#/definitions/Test"} |
| 69 } | 82 } |
| 70 }, | 83 }, |
| 71 | 84 |
| 72 { | 85 { |
| 86 "title": "SuiteEvent", |
| 87 "required": ["suite"], |
| 88 "properties": { |
| 89 "type": {"enum": ["suite"]}, |
| 90 "group": {"$ref": "#/definitions/Suite"} |
| 91 } |
| 92 }, |
| 93 |
| 94 { |
| 73 "title": "GroupEvent", | 95 "title": "GroupEvent", |
| 74 "required": ["group"], | 96 "required": ["group"], |
| 75 "properties": { | 97 "properties": { |
| 76 "type": {"enum": ["group"]}, | 98 "type": {"enum": ["group"]}, |
| 77 "group": {"$ref": "#/definitions/Group"} | 99 "group": {"$ref": "#/definitions/Group"} |
| 78 } | 100 } |
| 79 }, | 101 }, |
| 80 | 102 |
| 81 { | 103 { |
| 82 "title": "PrintEvent", | 104 "title": "PrintEvent", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 }, | 143 }, |
| 122 | 144 |
| 123 { | 145 { |
| 124 "title": "FutureEvent", | 146 "title": "FutureEvent", |
| 125 "description": | 147 "description": |
| 126 "A placeholder event to allow new events to be added in the future.", | 148 "A placeholder event to allow new events to be added in the future.", |
| 127 "properties": { | 149 "properties": { |
| 128 "type": { | 150 "type": { |
| 129 "not": { | 151 "not": { |
| 130 "enum": [ | 152 "enum": [ |
| 131 "start", "testStart", "group", "print", "error", "testDone", "done
" | 153 "start", "testStart", "suite", "group", "print", "error", |
| 154 "testDone", "done" |
| 132 ] | 155 ] |
| 133 } | 156 } |
| 134 } | 157 } |
| 135 } | 158 } |
| 136 } | 159 } |
| 137 ] | 160 ] |
| 138 } | 161 } |
| OLD | NEW |