{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/field-select.json#",
  "title": "Select field",
  "description": "Schema defines select field",
  "type": "object",
  "definitions": {
    "dataSource": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "options": {
          "type": "object",
          "required": ["displayProp"]
        }
      }
    },
    "multiple": {
      "type": "boolean"
    },
    "readonly": {
      "type": "boolean"
    },
    "value": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "properties": {
    "type": {
      "type": "string",
      "enum": ["select"]
    },
    "appendIcon": {
      "$ref": "field-base.json#/definitions/appendIcon"
    },
    "clearable": {
      "$ref": "field-base.json#/definitions/clearable"
    },
    "dataSource": {
      "$ref": "#/definitions/dataSource"
    },
    "hint": {
      "$ref": "field-base.json#/definitions/hint"
    },
    "label": {
      "$ref": "field-base.json#/definitions/label"
    },
    "mask": {
      "$ref": "field-base.json#/definitions/mask"
    },
    "multiLine": {
      "$ref": "field-base.json#/definitions/multiLine"
    },
    "multiple": {
      "$ref": "#/definitions/multiple"
    },
    "name": {
      "$ref": "field-base.json#/definitions/name"
    },
    "persistentHint": {
      "$ref": "field-base.json#/definitions/persistentHint"
    },
    "placeholder": {
      "$ref": "field-base.json#/definitions/placeholder"
    },
    "prependIcon": {
      "$ref": "field-base.json#/definitions/prependIcon"
    },
    "readonly": {
      "$ref": "#/definitions/readonly"
    },
    "tooltip": {
      "$ref": "field-base.json#/definitions/tooltip"
    },
    "validateOn": {
      "$ref": "field-base.json#/definitions/validateOn"
    },
    "validation": {
      "$ref": "field-base.json#/definitions/validation"
    },
    "value": {
      "$ref": "#/definitions/value"
    }
  },
  "required": ["type"]
}
