{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "accordion",
  "description": "Açılır sorular (SSS). Aç/kapa istemcide yerel; bota eylem gitmez.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "items"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "accordion"
      ]
    },
    "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": 80
    },
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 30,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,31}$",
            "description": "form alanı/grup kimliği; `values` anahtarı"
          },
          "question": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1
          },
          "answer": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1
          },
          "open": {
            "type": "boolean",
            "description": "başlangıçta açık"
          }
        },
        "required": [
          "id",
          "question",
          "answer"
        ]
      }
    },
    "allow_multiple": {
      "type": "boolean",
      "description": "birden fazla madde aynı anda açık kalabilir"
    }
  }
}
