{
  "title": "search",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "An object specifying the search parameters set within the web scene.",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "A boolean value indicating whether search functionality is enabled in the web scene.",
      "default": true
    },
    "hintText": {
      "type": "string",
      "description": "A string value used to indicate the hint provided with the search dialog."
    },
    "layers": {
      "type": "array",
      "description": "An array of layers to be included in search.",
      "items": {
        "type": "object",
        "$ref": "search_layer_schema.json"
      },
      "minItems": 1,
      "uniqueItems": true
    }
  },
  "required": [
    "layers"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "search",
        "code": {
          "search": {
            "enabled": true,
            "hintText": "Search by Address or State name",
            "layers": [
              {
                "id": "Census_9227",
                "field": {
                  "name": "STATE_NAME",
                  "exactMatch": false,
                  "type": "esriFieldTypeString"
                }
              }
            ]
          }
        }
      }
    ]
  }
}
