-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-schema.json
140 lines (140 loc) · 4.27 KB
/
config-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Viewer config schema",
"definitions": {
"folder": {
"type": "object",
"required": ["id", "name", "children"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for this structure level"
},
"name": {
"type": "string",
"description": "Human readable name of the structure level"
},
"metadata": {
"type": "array",
"description": "List of metadata objects for this structure level",
"items": {
"type": "object",
"required": ["key", "value"],
"additionalProperties": false,
"properties": {
"key": {
"type": "string",
"description": "Human readable title of the metadata term"
},
"value": {
"type": "string",
"description": "String of HTML content, describing the term"
}
}
}
},
"children": {
"type": "array",
"description": "List which can contain a nested structure levels or layer objects",
"items": {
"anyOf": [
{ "$ref": "#/definitions/layer" },
{ "$ref": "#/definitions/folder" }
]
}
}
}
},
"layer": {
"type": "object",
"required": ["id", "name", "url", "layer"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Unique identifier of the label"
},
"name": {
"type": "string",
"description": "Human readable name of the layer"
},
"url": {
"type": "string",
"description": "Url of the service to display the data"
},
"layer": {
"type": "string",
"description": "Layer to be displayed available on the service"
},
"downloadUrl": {
"type": "string",
"description": "Url of the service to download the data"
},
"downloadLayer": {
"type": "string",
"description": "Layer to be downloaded available on the service"
},
"externalApi": {
"name": {
"type": "string",
"description": "Name of the external service"
},
"url": {
"type": "string",
"description": "Url of external service, used to download data"
},
"apiKey": {
"type": "string",
"description": "API needed to download data"
},
"propertyMapping": {
"type": "object",
"description": "Mapping of properties to external service"
},
"filters": {
"type": "string",
"description": "Comma-separated list of filters to be applied to the data"
},
"date_filters": {
"type": "string",
"description": "Comma-separated list of filters to be applied to the data"
},
"format_csv": {
"type": "boolean",
"description": "Can the filter format=csv be applied on this request"
},
"max_page_size": {
"type": "string",
"description": "The max page size of the request"
}
},
"externalApiUrl": {
"type": "string",
"description": "Url of external service, used to download data"
},
"metadata": {
"type": "array",
"description": "List of metadata objects for this layer",
"items": {
"type": "object",
"required": ["key", "value"],
"additionalProperties": false,
"properties": {
"key": {
"type": "string",
"description": "Human readable title of the metadata term"
},
"value": {
"type": "string",
"description": "String of HTML content, describing the term"
}
}
}
}
}
}
},
"type": "object",
"$ref": "#/definitions/folder"
}