-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate resolver before starting (close #65)
- Loading branch information
Showing
5 changed files
with
385 additions
and
1 deletion.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
...esources/iglu-client-embedded/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for an Iglu resolver's configuration", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "resolver-config", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"cacheSize": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
|
||
"repositories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"name": { | ||
"type": "string" | ||
}, | ||
|
||
"priority": { | ||
"type": "integer" | ||
}, | ||
|
||
"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": { | ||
"http": { | ||
"type": "object", | ||
"properties": { | ||
"uri": { | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
}, | ||
"required": ["uri"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["http"], | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
}, | ||
"required": ["name", "priority", "vendorPrefixes", "connection"], | ||
"additionalProperties": false | ||
} | ||
} | ||
|
||
}, | ||
|
||
"required": ["cacheSize", "repositories"], | ||
"additionalProperties": false | ||
} | ||
|
93 changes: 93 additions & 0 deletions
93
...esources/iglu-client-embedded/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for an Iglu resolver's configuration", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "resolver-config", | ||
"format": "jsonschema", | ||
"version": "1-0-1" | ||
}, | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"cacheSize": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
|
||
"repositories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"name": { | ||
"type": "string" | ||
}, | ||
|
||
"priority": { | ||
"type": "integer" | ||
}, | ||
|
||
"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": { | ||
"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 | ||
} |
97 changes: 97 additions & 0 deletions
97
...esources/iglu-client-embedded/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for an Iglu resolver's configuration", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "resolver-config", | ||
"format": "jsonschema", | ||
"version": "1-0-2" | ||
}, | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"cacheSize": { | ||
"type": "number" | ||
}, | ||
|
||
"cacheTtl": { | ||
"type": ["integer", "null"], | ||
"minimum": 1 | ||
}, | ||
|
||
"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": { | ||
"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 | ||
} |
97 changes: 97 additions & 0 deletions
97
...esources/iglu-client-embedded/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for an Iglu resolver's configuration", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "resolver-config", | ||
"format": "jsonschema", | ||
"version": "1-0-3" | ||
}, | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"cacheSize": { | ||
"type": "number" | ||
}, | ||
|
||
"cacheTtl": { | ||
"type": ["integer", "null"], | ||
"minimum": 0 | ||
}, | ||
|
||
"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": { | ||
"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 | ||
} |
Oops, something went wrong.