-
Notifications
You must be signed in to change notification settings - Fork 21
/
json_schemas.py
39 lines (39 loc) · 1.23 KB
/
json_schemas.py
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
tiles_post_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"multivecRowAggregationOptions": {
"type": "object",
"required": ["aggGroups", "aggFunc"],
"additionalProperties": False,
"properties": {
"aggGroups": {
"type": "array",
"items": {
"oneOf": [
{ "type": "integer" },
{ "type": "array", "items": { "type": "integer" }}
]
}
},
"aggFunc": {
"type": "string",
"enum": ["sum", "mean", "median", "std", "var", "min", "max"]
}
}
}
},
"type": "array",
"items": {
"type": "object",
"required": ["tilesetUid", "tileIds"],
"properties": {
"tilesetUid": { "type": "string" },
"tileIds": { "type": "array", "items": { "type": "string" }},
"options": {
"oneOf": [
{ "$ref": "#/definitions/multivecRowAggregationOptions" }
]
}
}
}
}