{
  "$ref": "#/definitions/Events",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "Events": {
      "additionalProperties": false,
      "properties": {
        "clear": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "search": {
          "additionalProperties": false,
          "properties": {
            "by": {
              "enum": [
                "button",
                "input",
                "searchlist"
              ],
              "type": "string"
            },
            "input": {
              "type": "string"
            },
            "item": {
              "$ref": "#/definitions/TSearchListItem"
            }
          },
          "required": [
            "input",
            "by"
          ],
          "type": "object"
        }
      },
      "required": [
        "search",
        "clear"
      ],
      "type": "object"
    },
    "TSearchListItem": {
      "additionalProperties": false,
      "properties": {
        "badge": {
          "$ref": "#/definitions/TSearchListItemBadge"
        },
        "fixed": {
          "type": "boolean"
        },
        "icon": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "number_of_results": {
          "type": "number"
        },
        "tags": {
          "items": {
            "$ref": "#/definitions/TSearchListItemTag"
          },
          "type": "array"
        },
        "text": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "id"
      ],
      "type": "object"
    },
    "TSearchListItemBadge": {
      "additionalProperties": false,
      "properties": {
        "color": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "TSearchListItemTag": {
      "additionalProperties": false,
      "properties": {
        "color": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}
