{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "timeline",
  "description": "Zaman çizelgesi (kargo takibi vb.).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "events"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "timeline"
      ]
    },
    "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
    },
    "events": {
      "type": "array",
      "minItems": 1,
      "maxItems": 40,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "time": {
            "type": "string",
            "maxLength": 20
          },
          "text": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "done",
              "current",
              "pending"
            ]
          }
        },
        "required": [
          "text",
          "state"
        ]
      }
    }
  }
}
