{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/components/schemas/PkgSearchQueryVM",
  "components": {
    "schemas": {
      "PkgSearchQueryVM": {
        "required": [
          "key",
          "searchQuery",
          "searchQueryTypeKey"
        ],
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "searchQuery": {
            "minLength": 1,
            "type": "string"
          },
          "searchQueryTypeKey": {
            "minLength": 1,
            "enum": [
              "basic",
              "advanced",
              "empty",
              "detail_basic",
              "detail_advanced",
              "detail_empty",
              "desc_basic",
              "desc_advanced",
              "desc_empty",
              "data"
            ],
            "type": "string"
          },
          "state": {
            "enum": [
              "active",
              "inactive",
              "in-validation",
              "hidden"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}