From 084d36ce92fd90f5cc1f8e76d6d390b42fffa003 Mon Sep 17 00:00:00 2001 From: Ben Fradet Date: Wed, 28 Mar 2018 15:30:13 +0100 Subject: [PATCH] Add com.snowplowanalytics.snowplow/ip_lookups/jsonschema/2-0-0 (closes #744) --- .../ip_lookups/jsonschema/2-0-0 | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 schemas/com.snowplowanalytics.snowplow/ip_lookups/jsonschema/2-0-0 diff --git a/schemas/com.snowplowanalytics.snowplow/ip_lookups/jsonschema/2-0-0 b/schemas/com.snowplowanalytics.snowplow/ip_lookups/jsonschema/2-0-0 new file mode 100644 index 000000000..d446f2e0a --- /dev/null +++ b/schemas/com.snowplowanalytics.snowplow/ip_lookups/jsonschema/2-0-0 @@ -0,0 +1,90 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Schema for MaxMind GeoIP2 ip lookups enrichment", + "self": { + "vendor": "com.snowplowanalytics.snowplow", + "name": "ip_lookups", + "format": "jsonschema", + "version": "2-0-0" + }, + + "type": "object", + "properties": { + "vendor": { + "type": "string", + "maxLength": 256 + }, + "name": { + "type": "string", + "maxLength": 256 + }, + "enabled": { + "type": "boolean" + }, + "parameters": { + "type": "object", + "properties": { + + "geo": { + "type": "object", + "properties": { + "database": { + "enum": ["GeoLite2-City.mmdb", "GeoIP2-City.mmdb"] + }, + "uri": { + "type": "string", + "format": "uri" + } + }, + "required": ["database", "uri"] + }, + + "isp": { + "type": "object", + "properties": { + "database": { + "enum": ["GeoIP2-ISP.mmdb"] + }, + "uri": { + "type": "string", + "format": "uri" + } + }, + "required": ["database", "uri"] + }, + + "domain": { + "type": "object", + "properties": { + "database": { + "enum": ["GeoIP2-Domain.mmdb"] + }, + "uri": { + "type": "string", + "format": "uri" + } + }, + "required": ["database", "uri"] + }, + + "connectionType": { + "type": "object", + "properties": { + "database": { + "enum": ["GeoIP2-Connection-Type.mmdb"] + }, + "uri": { + "type": "string", + "format": "uri" + } + }, + "required": ["database", "uri"] + } + + }, + "additionalProperties": false + } + }, + "required": ["name", "vendor", "enabled", "parameters"], + "additionalProperties": false +}