0002-atal-adapt-JSON-schema-for-display-37481.patch
passerelle/apps/atal/schemas.py | ||
---|---|---|
160 | 160 | |
161 | 161 |
UPLOAD = { |
162 | 162 |
'$schema': 'http://json-schema.org/draft-03/schema#', |
163 |
'definitions': { |
|
163 |
'type': 'object', |
|
164 |
'required': ['file', 'numero_demande', 'nom_fichier'], |
|
165 |
'properties': { |
|
164 | 166 |
'file': { |
165 | 167 |
'type': 'object', |
166 | 168 |
'properties': { |
... | ... | |
169 | 171 |
'required': True |
170 | 172 |
}, |
171 | 173 |
}, |
172 |
'required': True |
|
173 |
} |
|
174 |
}, |
|
175 |
'type': 'object', |
|
176 |
'properties': { |
|
177 |
'file': { |
|
178 |
'$ref': '#/definitions/file' |
|
179 | 174 |
}, |
180 | 175 |
'numero_demande': { |
181 | 176 |
'type': 'string', |
182 |
'required': True, |
|
183 | 177 |
}, |
184 | 178 |
'nom_fichier': { |
185 | 179 |
'type': 'string', |
186 |
'required': True, |
|
187 | 180 |
} |
188 | 181 |
} |
189 | 182 |
} |
190 |
- |