-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp_config.schema.json
371 lines (371 loc) · 11.3 KB
/
app_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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
{
"$defs": {
"ArchSubdirDiscoveryChoice": {
"enum": [
"all",
"channeldata"
],
"title": "ArchSubdirDiscoveryChoice",
"type": "string"
},
"ArchSubdirList": {
"additionalProperties": false,
"properties": {
"subdirs": {
"description": "A list of architecture subdirectories.",
"items": {
"type": "string"
},
"title": "Subdirs",
"type": "array"
}
},
"required": [
"subdirs"
],
"title": "ArchSubdirList",
"type": "object"
},
"ArtifactDiscoveryChoice": {
"enum": [
"anaconda",
"repodata"
],
"title": "ArtifactDiscoveryChoice",
"type": "string"
},
"Channel": {
"additionalProperties": false,
"properties": {
"url": {
"description": "The URL of the channel. For conda-forge, this should be https://conda.anaconda.org/conda-forge.",
"format": "uri",
"minLength": 1,
"title": "Url",
"type": "string"
},
"rss_enabled": {
"default": false,
"description": "Whether to enable the RSS feed for this channel.\nIf true, it is assumed that the channel has an RSS feed at {url}/rss.xml.",
"title": "Rss Enabled",
"type": "boolean"
},
"package_discovery": {
"$ref": "#/$defs/PackageDiscoveryChoice",
"description": "How to discover names of packages in the channel."
},
"artifact_discovery": {
"$ref": "#/$defs/ArtifactDiscoveryChoice",
"description": "How to discover artifacts in the channel, given a package name."
},
"arch_subdir_discovery": {
"anyOf": [
{
"$ref": "#/$defs/ArchSubdirDiscoveryChoice"
},
{
"$ref": "#/$defs/ArchSubdirList"
}
],
"default": "channeldata",
"description": "How to discover architecture subdirectories in the channel.\nUse an ArchSubdirList to specify a list of subdirectories.",
"title": "Arch Subdir Discovery"
},
"repodata_patches_package": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "A package that contains repodata patches, which is expected to have the format of `conda-forge-repodata-patches`.\nFor conda-forge, this should be `conda-forge-repodata-patches`.\nThe package is expected to be available in the channel.",
"title": "Repodata Patches Package"
},
"map_conda_forge_package_to_feedstock": {
"default": false,
"description": "Enable this for conda-forge to map package names to feedstock names.\nThis is used for provenance URLs (see below).\n\nIf this is False, the package name is used as the feedstock name.",
"title": "Map Conda Forge Package To Feedstock",
"type": "boolean"
},
"provenance_url_pattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "A URL pattern to link to the provenance of a package. The URL pattern should contain a `{feedstock}` placeholder\nfor the feedstock (!) name (see map_conda_forge_package_to_feedstock).\nEach placeholder will be replaced with the feedstock name.\n\nFor conda-forge, this should be https://github.com/conda-forge/{feedstock}-feedstock.\nA remote URL present in the metadata always takes precedence over this URL pattern.",
"title": "Provenance Url Pattern"
},
"package_filter": {
"$ref": "#/$defs/PackageFilter",
"default": {
"allowed_names": [],
"allowed_prefixes": []
},
"description": "Filter packages by name or prefix."
},
"supports_broken_label": {
"default": false,
"description": "Set this to true if the channel supports a label called \"broken\" indicating yanked releases.\nCurrently, this is only respected if artifact_discovery is set to \"anaconda\".",
"title": "Supports Broken Label",
"type": "boolean"
},
"dashboards": {
"default": [],
"description": "Must match keys in the AppConfig.dashboards dictionary.",
"items": {
"type": "string"
},
"title": "Dashboards",
"type": "array"
},
"metadata_retrieval": {
"$ref": "#/$defs/MetadataRetrieval",
"description": "How to retrieve metadata for a package."
},
"override_extensions": {
"anyOf": [
{
"items": {
"anyOf": [
{
"const": "conda",
"enum": [
"conda"
],
"type": "string"
},
{
"const": "tar.bz2",
"enum": [
"tar.bz2"
],
"type": "string"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Set this to a list of conda package extensions to override the auto detection of extensions.",
"title": "Override Extensions"
},
"auth_username": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/EnvSecret"
},
{
"$ref": "#/$defs/FileSecret"
},
{
"type": "null"
}
],
"default": null,
"description": "The username for HTTP basic authentication.",
"title": "Auth Username"
},
"auth_password": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/EnvSecret"
},
{
"$ref": "#/$defs/FileSecret"
},
{
"type": "null"
}
],
"default": null,
"description": "The password for HTTP basic authentication.",
"title": "Auth Password"
},
"auth_quetz_token": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/EnvSecret"
},
{
"$ref": "#/$defs/FileSecret"
},
{
"type": "null"
}
],
"default": null,
"description": "The Quetz token for authentication. Adds an X-API-Key header to requests.",
"title": "Auth Quetz Token"
},
"auth_bearer_token": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/EnvSecret"
},
{
"$ref": "#/$defs/FileSecret"
},
{
"type": "null"
}
],
"default": null,
"description": "The bearer token for authentication. Adds an Authorization: Bearer header to requests.\nUse this for private prefix.dev channels.",
"title": "Auth Bearer Token"
}
},
"required": [
"url",
"package_discovery",
"artifact_discovery",
"metadata_retrieval"
],
"title": "Channel",
"type": "object"
},
"Dashboard": {
"additionalProperties": false,
"properties": {
"url_pattern": {
"description": "The URL pattern of the dashboard. The URL pattern can contain the following placeholders within curly {} braces:\n\n- `channel`: The channel name. If the channel name contains a slash, only the second part is used.\n- `name`: The name of the package.\n- `version`: The version of the package.\n- `subdir`: The architecture subdirectory.",
"title": "Url Pattern",
"type": "string"
}
},
"required": [
"url_pattern"
],
"title": "Dashboard",
"type": "object"
},
"EnvSecret": {
"properties": {
"env": {
"title": "Env",
"type": "string"
}
},
"required": [
"env"
],
"title": "EnvSecret",
"type": "object"
},
"FileSecret": {
"properties": {
"file": {
"title": "File",
"type": "string"
}
},
"required": [
"file"
],
"title": "FileSecret",
"type": "object"
},
"MetadataRetrieval": {
"enum": [
"streamed",
"oci_with_streamed_fallback"
],
"title": "MetadataRetrieval",
"type": "string"
},
"PackageDiscoveryChoice": {
"enum": [
"channeldata",
"repodata"
],
"title": "PackageDiscoveryChoice",
"type": "string"
},
"PackageFilter": {
"additionalProperties": false,
"description": "By default, no packages are filtered. By setting allowed_names or allowed_prefixes, only packages that match\nthe criteria will be considered.",
"properties": {
"allowed_names": {
"default": [],
"description": "Whitelist of package names. Only packages with names in this list will be considered.",
"items": {
"type": "string"
},
"title": "Allowed Names",
"type": "array"
},
"allowed_prefixes": {
"default": [],
"description": "Whitelist of package prefixes.\nOnly packages with names that start with one of the prefixes in this list will be considered.",
"items": {
"type": "string"
},
"title": "Allowed Prefixes",
"type": "array"
}
},
"title": "PackageFilter",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"channels": {
"additionalProperties": {
"$ref": "#/$defs/Channel"
},
"description": "All channels that should be available. The key is the channel name.",
"title": "Channels",
"type": "object"
},
"dashboards": {
"additionalProperties": {
"$ref": "#/$defs/Dashboard"
},
"default": {},
"description": "Dashboards are other applications that can be linked to from the package browser.",
"title": "Dashboards",
"type": "object"
},
"enable_filepath_search": {
"default": true,
"description": "Whether to enable the file path search feature.\nThe file path search feature sends information about your query to an API provided by Quansight.",
"title": "Enable Filepath Search",
"type": "boolean"
},
"enable_filetype_plot": {
"default": true,
"description": "Whether to enable Altair charts to plot a basic path-based analysis of the files included in\neach artifact.",
"title": "Enable Filetype Plot",
"type": "boolean"
}
},
"required": [
"channels"
],
"title": "AppConfig",
"type": "object"
}