-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatch_schema.json
45 lines (45 loc) · 1.25 KB
/
batch_schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Suade Data Batch Schema",
"description": "Suade data schema used to upload a batch of data to the platform.",
"type": "object",
"properties": {
"name": {
"description": "A unique identifier for the data batch",
"type": "string"
},
"data": {
"description": "An array of data items of a single type",
"type": "array",
"minItems": 1,
"items": {
"oneOf": [
{ "$ref": "schemas/v0-dev/account.json#" },
{ "$ref": "schemas/v0-dev/customer.json#" },
{ "$ref": "schemas/v0-dev/collateral.json#" },
{ "$ref": "schemas/v0-dev/loan.json#" },
{ "$ref": "schemas/v0-dev/loan_transaction.json#" }
]
}
},
"links": {
"description": "An array describing the page structure of the full data batch",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"rel": {
"type": "string",
"enum": ["self", "prev", "next", "first", "last"]
},
"href" : {
"type": "string",
"format": "uri"
}
}
}
}
},
"required": ["name", "data"]
}