{
    "additionalProperties": false,
    "description": "Schema for weather enrichment",
    "properties": {
        "enabled": {
            "type": "boolean"
        },
        "name": {
            "type": "string"
        },
        "parameters": {
            "additionalProperties": false,
            "properties": {
                "apiHost": {
                    "type": "string"
                },
                "apiKey": {
                    "type": "string"
                },
                "cacheSize": {
                    "maximum": 1000000,
                    "minimum": 1,
                    "type": "integer"
                },
                "geoPrecision": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                },
                "timeout": {
                    "minimum": 1,
                    "type": "integer"
                }
            },
            "required": [
                "apiKey",
                "cacheSize",
                "geoPrecision",
                "apiHost",
                "timeout"
            ],
            "type": "object"
        },
        "vendor": {
            "type": "string"
        }
    },
    "required": [
        "name",
        "vendor",
        "enabled",
        "parameters"
    ],
    "self": {
        "format": "jsonschema",
        "name": "weather_enrichment_config",
        "vendor": "com.snowplowanalytics.snowplow.enrichments",
        "version": "1-0-0"
    },
    "type": "object"
}