{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "gallery",
  "description": "Galeri (kolaj). `total_count` > görüntü sayısı ise son karoda “+N” gösterilir; dokunma tam ekran görüntüleyiciyi açar (yerel).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "images"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "gallery"
      ]
    },
    "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"
      ]
    },
    "images": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "pattern": "^(https://[^\\s\\x00-\\x1f\\x7f]{1,2040}|[A-Za-z0-9_.:-]{8,256})$",
        "x-inki-medya": "photo",
        "description": "Telegram sözleşmesi: file_id ya da https URL (sunucu egress ile indirip yeniden barındırır)"
      }
    },
    "total_count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9999
    },
    "caption": {
      "type": "string",
      "maxLength": 200
    }
  }
}
