{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "metric_tiles",
  "description": "Metrik kutuları.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "tiles"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "metric_tiles"
      ]
    },
    "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"
      ]
    },
    "tiles": {
      "type": "array",
      "minItems": 1,
      "maxItems": 6,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string",
            "maxLength": 16,
            "minLength": 1
          },
          "label": {
            "type": "string",
            "maxLength": 30,
            "minLength": 1
          },
          "brand_color": {
            "type": "string",
            "enum": [
              "mavi",
              "turuncu",
              "mor",
              "pembe",
              "altin",
              "yesil",
              "turkuaz"
            ]
          }
        },
        "required": [
          "value",
          "label"
        ]
      }
    }
  }
}
