{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "table",
  "description": "Tablo. Her satırın hücre sayısı `columns` sayısına eşit olmalı (istemci eksiği boş, fazlayı kırpar).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "columns",
    "rows"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "table"
      ]
    },
    "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
    },
    "columns": {
      "type": "array",
      "minItems": 1,
      "maxItems": 8,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 60
          },
          "align": {
            "type": "string",
            "enum": [
              "start",
              "center",
              "end"
            ]
          },
          "highlight": {
            "type": "boolean",
            "description": "sütun vurgulu (ör. önerilen plan)"
          }
        },
        "required": [
          "label"
        ]
      }
    },
    "rows": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "type": "array",
        "minItems": 1,
        "maxItems": 8,
        "items": {
          "type": "string",
          "maxLength": 200
        }
      }
    },
    "caption": {
      "type": "string",
      "maxLength": 200
    }
  }
}
