{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "AgentRequestParameters",
  "title": "AgentRequestParameters",
  "definitions": {
    "token": {
      "additionalProperties": false,
      "properties": {
        "token": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{32}$"
        },
        "mid": {
          "type": "string",
          "pattern": "^[0-9]{22,32}$"
        }
      },
      "required": ["token", "mid"]
    },
    "ticket": {
      "additionalProperties": false,
      "properties": {
        "ticketId": {
          "type": "string",
          "pattern": "^[0-9]{6,}$"
        }
      },
      "required": ["ticketId"]
    }
  },
  "oneOf": [
    {
      "$ref": "#/definitions/token"
    },
    {
      "$ref": "#/definitions/ticket"
    }
  ],
  "type": "object"
}
