-
Notifications
You must be signed in to change notification settings - Fork 0
/
processing-config-schema.json
94 lines (94 loc) · 2.55 KB
/
processing-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
{
"type": "object",
"x-display": "tabs",
"required": [
"datasetMode"
],
"allOf": [
{
"title": "Jeu de données",
"oneOf": [
{
"title": "Créer un jeu de données",
"required": [
"dataset"
],
"properties": {
"datasetMode": {
"type": "string",
"const": "create",
"title": "Action"
},
"dataset": {
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"title": "Titre"
}
}
}
}
},
{
"title": "Mettre à jour un jeu de données (fichier)",
"required": [
"dataset"
],
"properties": {
"datasetMode": {
"type": "string",
"const": "update"
},
"dataset": {
"type": "object",
"title": "Jeu de données existant",
"description": "Sélectionnez un jeu de données GTFS métadonnées uniquement",
"x-fromUrl": "{context.dataFairUrl}/api/v1/datasets?q={q}&select=id,title&{context.ownerFilter}",
"x-itemsProp": "results",
"x-itemTitle": "title",
"x-itemKey": "id",
"properties": {
"id": {
"type": "string",
"title": "Identifiant"
},
"title": {
"type": "string",
"title": "Titre"
}
}
}
}
}
]
},
{
"title": "Paramètres",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"title": "l'Url d'accès aux données sources (source zip)",
"description": "les protocoles supportés sont HTTP, HTTPS et SFTP"
},
"username": {"title": "Utilisateur", "type": "string"},
"password": {"title": "Mot de passe", "type": "string", "x-props": {"type": "password"}},
"downloadZip": {
"type": "boolean",
"title": "Télécharger le fichier zip",
"description": "Télécharger le fichier zip ou l'ensemble des fichiers contenus dans le zip"
},
"clearFiles": {
"type": "boolean",
"title": "Supprimer les fichiers existants"
}
}
}
]
}