@windingtree/wt-write-api
Version:
API to write data to the Winding Tree platform
92 lines (91 loc) • 1.98 kB
JSON
{
"description": "Uploader configuration.",
"type": "object",
"definitions": {
"inMemory": {
"type": "object",
"required": [
"inMemory"
],
"properties": {
"inMemory": {
"type": "object",
"properties": {}
}
}
},
"s3": {
"type": "object",
"required": [
"s3"
],
"properties": {
"s3": {
"required": [
"accessKeyId",
"secretAccessKey",
"region",
"bucket"
],
"type": "object",
"properties": {
"accessKeyId": {
"type": "string"
},
"secretAccessKey": {
"type": "string"
},
"region": {
"type": "string"
},
"bucket": {
"type": "string"
},
"keyPrefix": {
"type": "string"
}
}
}
}
},
"swarm": {
"type": "object",
"required": [
"swarm"
],
"properties": {
"swarm": {
"type": "object",
"properties": {
"providerUrl": {
"type": "string",
"format": "uri"
},
"timeout": {
"type": "number"
},
"timeoutRead": {
"type": "number"
},
"timeoutWrite": {
"type": "number"
}
}
}
}
},
"uploader": {
"oneOf": [
{ "$ref": "#/definitions/s3" },
{ "$ref": "#/definitions/swarm" },
{ "$ref": "#/definitions/inMemory" }
]
}
},
"properties": {
"root": { "$ref": "#/definitions/uploader" },
"description": { "$ref": "#/definitions/uploader" },
"ratePlans": { "$ref": "#/definitions/uploader" },
"availability": { "$ref": "#/definitions/uploader" }
}
}