{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Weather",
    "type": "object",
    "additionalProperties": false,
    "description": "Weather",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "WEATHER"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "Weather"
            ]
        },
        "weather_code": {
            "type": "integer",
            "description": "Weather code, e.g. 500 light rain"
        },
        "weather_main_type": {
            "$ref": "/resources/schema/analytics/client/v4/type/WeatherType.json",
            "description": "Weather main type, e.g. rain"
        },
        "weather_desc": {
            "type": "string",
            "description": "Weather detailed description, e.g. light rain"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "weather_code",
        "weather_main_type"
    ]
}