{
  "$schema": "http://json-schema.org/schema#",
  "title": "event",
  "type": "object",
  "oneOf": [
    {
      "properties": {
        "type": {
          "const": "exit"
        },
        "data": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255
        }
      },
      "required": ["type", "data"],
      "additionalProperties": false
    },
    {
      "properties": {
        "type": {
          "enum": [ "stdout", "stderr", "error" ]
        },
        "data": {
          "type": "string"
        }
      },
      "required": ["type", "data"],
      "additionalProperties": false
    },
    {
      "properties": {
        "type": {
          "enum": [ "start", "timeout" ]
        }
      },
      "required": ["type"],
      "additionalProperties": false
    }
  ]
}
