From 0b2ff4ff2a00415f856ac69215e5576c88d0d765 Mon Sep 17 00:00:00 2001 From: Lining Sun Date: Fri, 20 May 2016 13:23:40 -0700 Subject: [PATCH] HdfsRepository supports #54 --- .../resolver-config/jsonschema/1-1-0 | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 src/main/resources/iglu-client-embedded/schemas/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-1-0 diff --git a/src/main/resources/iglu-client-embedded/schemas/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-1-0 b/src/main/resources/iglu-client-embedded/schemas/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-1-0 new file mode 100644 index 00000000..e06d86c6 --- /dev/null +++ b/src/main/resources/iglu-client-embedded/schemas/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-1-0 @@ -0,0 +1,108 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-1-0#", + "description": "Schema for an Iglu resolver's configuration", + "self": { + "vendor": "com.snowplowanalytics.iglu", + "name": "resolver-config", + "format": "jsonschema", + "version": "1-1-0" + }, + + "type": "object", + + "properties": { + + "cacheSize": { + "type": "number" + }, + + "repositories": { + "type": "array", + "items": { + "type": "object", + + "properties": { + + "name": { + "type": "string" + }, + + "priority": { + "type": "number" + }, + + "vendorPrefixes": { + "type": "array", + "items": { + "type": "string" + } + }, + + "connection": { + "type": "object", + "oneOf": [ + { + "properties": { + "embedded": { + "type": "object", + "properties": { + "path": { + "type": "string" + } + }, + "required": ["path"], + "additionalProperties": false + } + }, + "required": ["embedded"], + "additionalProperties": false + }, + { + "properties": { + "hdfs": { + "type": "object", + "properties": { + "path": { + "type": "string" + } + }, + "required": ["path"], + "additionalProperties": false + } + }, + "required": ["hdfs"], + "additionalProperties": false + }, + { + "properties": { + "http": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "format": "uri" + }, + "apikey": { + "type": ["string", "null"] + } + }, + "required": ["uri"], + "additionalProperties": false + } + }, + "required": ["http"], + "additionalProperties": false + } + ] + } + }, + "required": ["name", "priority", "vendorPrefixes", "connection"], + "additionalProperties": false + } + } + + }, + + "required": ["cacheSize", "repositories"], + "additionalProperties": false +}