{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "single_choice",
  "description": "Tekli seçim (radyo listesi).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "options"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "single_choice"
      ]
    },
    "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"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "options": {
      "type": "array",
      "minItems": 2,
      "maxItems": 10,
      "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
          },
          "detail": {
            "type": "string",
            "maxLength": 120
          }
        },
        "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"
    }
  },
  "x-inki-eylem": [
    {
      "action": "select",
      "values": {
        "value": "options[].value"
      }
    }
  ]
}
