{
    "additionalProperties": false,
    "description": "Schema for MaxMind GeoIP2 ip lookups enrichment",
    "properties": {
        "enabled": {
            "type": "boolean"
        },
        "name": {
            "maxLength": 256,
            "type": "string"
        },
        "parameters": {
            "additionalProperties": false,
            "properties": {
                "connectionType": {
                    "properties": {
                        "database": {
                            "enum": [
                                "GeoIP2-Connection-Type.mmdb"
                            ]
                        },
                        "uri": {
                            "_format": "uri",
                            "type": "string"
                        }
                    },
                    "required": [
                        "database",
                        "uri"
                    ],
                    "type": "object"
                },
                "domain": {
                    "properties": {
                        "database": {
                            "enum": [
                                "GeoIP2-Domain.mmdb"
                            ]
                        },
                        "uri": {
                            "_format": "uri",
                            "type": "string"
                        }
                    },
                    "required": [
                        "database",
                        "uri"
                    ],
                    "type": "object"
                },
                "geo": {
                    "properties": {
                        "database": {
                            "enum": [
                                "GeoLite2-City.mmdb",
                                "GeoIP2-City.mmdb"
                            ]
                        },
                        "uri": {
                            "_format": "uri",
                            "type": "string"
                        }
                    },
                    "required": [
                        "database",
                        "uri"
                    ],
                    "type": "object"
                },
                "isp": {
                    "properties": {
                        "database": {
                            "enum": [
                                "GeoIP2-ISP.mmdb"
                            ]
                        },
                        "uri": {
                            "_format": "uri",
                            "type": "string"
                        }
                    },
                    "required": [
                        "database",
                        "uri"
                    ],
                    "type": "object"
                }
            },
            "type": "object"
        },
        "vendor": {
            "maxLength": 256,
            "type": "string"
        }
    },
    "required": [
        "name",
        "vendor",
        "enabled",
        "parameters"
    ],
    "self": {
        "format": "jsonschema",
        "name": "ip_lookups",
        "vendor": "com.snowplowanalytics.snowplow",
        "version": "2-0-0"
    },
    "type": "object"
}