Skip to content

Commit

Permalink
HdfsRepository supports snowplow#54
Browse files Browse the repository at this point in the history
  • Loading branch information
liningalex committed May 20, 2016
1 parent 7dbc036 commit 0b2ff4f
Showing 1 changed file with 108 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 0b2ff4f

Please sign in to comment.