{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "dropdown",
  "description": "Açılır menü.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "placeholder",
    "options"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "dropdown"
      ]
    },
    "version": {
      "type": "integer",
      "enum": [
        1
      ]
    },
    "tone": {
      "type": "string",
      "enum": [
        "neutral",
        "success",
        "warning",
        "danger",
        "brand"
      ]
    },
    "brand_color": {
      "type": "string",
      "enum": [
        "mavi",
        "turuncu",
        "mor",
        "pembe",
        "altin",
        "yesil",
        "turkuaz"
      ]
    },
    "placeholder": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1
    },
    "options": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
            "description": "seçenek/öğe değeri; istemci bunu `inki_component_action.values` içinde geri gönderir"
          },
          "label": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          }
        },
        "required": [
          "value",
          "label"
        ]
      }
    },
    "selected": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "description": "seçenek/öğe değeri; istemci bunu `inki_component_action.values` içinde geri gönderir"
    },
    "searchable": {
      "type": "boolean"
    }
  },
  "x-inki-eylem": [
    {
      "action": "select",
      "values": {
        "value": "options[].value"
      }
    }
  ]
}
