{
  "type": "object",
  "properties": {
    "timeInterval": {
      "$ref": "#/definitions/TimeOptions"
    },
    "location": {
      "type": "string"
    },
    "temperature": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "feelsLikeTemperature": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "humidity": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "windSpeed": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "windDirection": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "gusture": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "precipitation": {
      "$ref": "#/definitions/WeatherComponentDatasetProps"
    },
    "dateSelection": {
      "$ref": "#/definitions/DateSelectionProps"
    },
    "reportMode": {
      "type": "boolean"
    }
  },
  "required": ["timeInterval"],
  "definitions": {
    "TimeOptions": {
      "type": "string",
      "enum": ["DAYS", "HOURS"]
    },
    "WeatherComponentDatasetProps": {
      "type": "object",
      "properties": {
        "isVisible": {
          "type": "boolean"
        },
        "dataset": {
          "type": "object",
          "properties": {
            "identifier": {
              "type": "string"
            },
            "line": {
              "type": "object",
              "properties": {
                "color": {
                  "type": "string"
                },
                "width": {
                  "type": "number"
                },
                "dash": {
                  "type": "string"
                }
              },
              "required": ["color", "dash", "width"]
            },
            "overriddenTitle": {
              "type": "string"
            }
          },
          "required": ["identifier", "line"]
        }
      },
      "required": ["dataset"]
    },
    "DateSelectionProps": {
      "type": "object",
      "properties": {
        "isVisible": {
          "type": "boolean"
        }
      },
      "required": ["isVisible"]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
