| 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", "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 "groupIDs": { |
| 12 "type": "array", |
| 13 "items": {"type": "integer", "minimum": 0} |
| 14 }, |
| 11 "metadata": {"$ref": "#/definitions/Metadata"} | 15 "metadata": {"$ref": "#/definitions/Metadata"} |
| 12 } | 16 } |
| 13 }, | 17 }, |
| 14 | 18 |
| 15 "Group": { | 19 "Group": { |
| 16 "required": ["id", "name"], | 20 "required": ["id", "name"], |
| 17 "properties": { | 21 "properties": { |
| 18 "id": {"type": "integer", "minimum": 0}, | 22 "id": {"type": "integer", "minimum": 0}, |
| 19 "parentID": { | 23 "parentID": { |
| 20 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}] | 24 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 "time": {"type": "integer", "minimum": 0}, | 46 "time": {"type": "integer", "minimum": 0}, |
| 43 "type": {"type": "string"} | 47 "type": {"type": "string"} |
| 44 }, | 48 }, |
| 45 | 49 |
| 46 "oneOf": [ | 50 "oneOf": [ |
| 47 { | 51 { |
| 48 "title": "StartEvent", | 52 "title": "StartEvent", |
| 49 "required": ["protocolVersion", "runnerVersion"], | 53 "required": ["protocolVersion", "runnerVersion"], |
| 50 "properties": { | 54 "properties": { |
| 51 "type": {"enum": ["start"]}, | 55 "type": {"enum": ["start"]}, |
| 52 "protocolVersion": {"type": "string"}, | 56 "protocolVersion": {"type": "string", "pattern": "^0\.1\."}, |
| 53 "runnerVersion": { | 57 "runnerVersion": { |
| 54 "oneOf": [{"type": "string"}, {"type": "null"}] | 58 "oneOf": [{"type": "string"}, {"type": "null"}] |
| 55 } | 59 } |
| 56 } | 60 } |
| 57 }, | 61 }, |
| 58 | 62 |
| 59 { | 63 { |
| 60 "title": "TestStartEvent", | 64 "title": "TestStartEvent", |
| 61 "required": ["test"], | 65 "required": ["test"], |
| 62 "properties": { | 66 "properties": { |
| 63 "type": {"enum": ["testStart"]}, | 67 "type": {"enum": ["testStart"]}, |
| 64 "test": {"$ref": "#/definitions/Test"} | 68 "test": {"$ref": "#/definitions/Test"} |
| 65 } | 69 } |
| 66 }, | 70 }, |
| 67 | 71 |
| 68 { | 72 { |
| 69 "title": "GroupEvent", | 73 "title": "GroupEvent", |
| 70 "required": ["group"], | 74 "required": ["group"], |
| 71 "properties": { | 75 "properties": { |
| 72 "type": {"enum": ["group"]}, | 76 "type": {"enum": ["group"]}, |
| 73 "group": {"$ref": "#/definitions/Group"} | 77 "group": {"$ref": "#/definitions/Group"} |
| 74 } | 78 } |
| 75 }, | 79 }, |
| 76 | 80 |
| 77 { | 81 { |
| 78 "title": "PrintEvent", | 82 "title": "PrintEvent", |
| 79 "required": ["message"], | 83 "required": ["testID", "message"], |
| 80 "properties": { | 84 "properties": { |
| 81 "type": {"enum": ["print"]}, | 85 "type": {"enum": ["print"]}, |
| 86 "testID": {"type": "integer", "minimum": 0}, |
| 82 "message": {"type": "string"} | 87 "message": {"type": "string"} |
| 83 } | 88 } |
| 84 }, | 89 }, |
| 85 | 90 |
| 86 { | 91 { |
| 87 "title": "ErrorEvent", | 92 "title": "ErrorEvent", |
| 88 "required": ["testID", "error", "stackTrace", "isFailure"], | 93 "required": ["testID", "error", "stackTrace", "isFailure"], |
| 89 "properties": { | 94 "properties": { |
| 90 "type": {"enum": ["error"]}, | 95 "type": {"enum": ["error"]}, |
| 91 "testID": {"type": "integer", "minimum": 0}, | 96 "testID": {"type": "integer", "minimum": 0}, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 110 "title": "DoneEvent", | 115 "title": "DoneEvent", |
| 111 "required": ["success"], | 116 "required": ["success"], |
| 112 "properties": { | 117 "properties": { |
| 113 "type": {"enum": ["done"]}, | 118 "type": {"enum": ["done"]}, |
| 114 "success": {"type": "boolean"} | 119 "success": {"type": "boolean"} |
| 115 } | 120 } |
| 116 }, | 121 }, |
| 117 | 122 |
| 118 { | 123 { |
| 119 "title": "FutureEvent", | 124 "title": "FutureEvent", |
| 125 "description": |
| 126 "A placeholder event to allow new events to be added in the future.", |
| 120 "properties": { | 127 "properties": { |
| 121 "type": { | 128 "type": { |
| 122 "not": { | 129 "not": { |
| 123 "enum": [ | 130 "enum": [ |
| 124 "start", "testStart", "group", "print", "error", "testDone", "done
" | 131 "start", "testStart", "group", "print", "error", "testDone", "done
" |
| 125 ] | 132 ] |
| 126 } | 133 } |
| 127 } | 134 } |
| 128 } | 135 } |
| 129 } | 136 } |
| 130 ] | 137 ] |
| 131 } | 138 } |
| OLD | NEW |