{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "hourly_weather",
  "description": "Saatlik hava; ikon seçimi `condition` enumundan istemcide.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "location",
    "hours"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "hourly_weather"
      ]
    },
    "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"
      ]
    },
    "location": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    },
    "temperature": {
      "type": "integer",
      "minimum": -90,
      "maximum": 70
    },
    "unit": {
      "type": "string",
      "enum": [
        "celsius",
        "fahrenheit"
      ]
    },
    "summary": {
      "type": "string",
      "maxLength": 80
    },
    "hours": {
      "type": "array",
      "minItems": 1,
      "maxItems": 24,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 12,
            "minLength": 1
          },
          "temperature": {
            "type": "integer",
            "minimum": -90,
            "maximum": 70
          },
          "condition": {
            "type": "string",
            "enum": [
              "clear",
              "partly_cloudy",
              "cloudy",
              "rain",
              "storm",
              "snow",
              "fog",
              "wind"
            ]
          }
        },
        "required": [
          "label",
          "temperature",
          "condition"
        ]
      }
    }
  }
}
