{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "calendar",
  "description": "Ay takvimi. Gün seçimi `select`; ay değişimi `change` (bot yeni ayın doluluğunu inkiAnswerComponentAction.replace_component ile gönderir).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "month"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "calendar"
      ]
    },
    "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"
      ]
    },
    "month": {
      "type": "string",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
      "description": "YYYY-MM"
    },
    "selected": {
      "type": "string",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
      "description": "YYYY-MM-DD"
    },
    "min_date": {
      "type": "string",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
      "description": "YYYY-MM-DD"
    },
    "max_date": {
      "type": "string",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
      "description": "YYYY-MM-DD"
    },
    "disabled_dates": {
      "type": "array",
      "minItems": 0,
      "maxItems": 31,
      "items": {
        "type": "string",
        "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
        "description": "YYYY-MM-DD"
      },
      "description": "seçilemez (dolu/kapalı) günler"
    },
    "marked_dates": {
      "type": "array",
      "minItems": 0,
      "maxItems": 31,
      "items": {
        "type": "string",
        "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
        "description": "YYYY-MM-DD"
      },
      "description": "nokta ile işaretli günler (müsait vb.)"
    }
  },
  "x-inki-eylem": [
    {
      "action": "select",
      "values": {
        "date": "YYYY-MM-DD"
      }
    },
    {
      "action": "change",
      "values": {
        "month": "YYYY-MM"
      }
    }
  ]
}
