0004-toulouse_maelis-modify-coordinate-schema-desciption-.patch
passerelle/contrib/toulouse_maelis/schemas.py | ||
---|---|---|
300 | 300 |
'oneOf': [{'type': 'null'}, {'type': 'string'}], |
301 | 301 |
}, |
302 | 302 |
'rl1': RLINFO_SCHEMA, |
303 | 303 |
'rl2': RLINFO_SCHEMA, |
304 | 304 |
}, |
305 | 305 |
'unflatten': True, |
306 | 306 |
} |
307 | 307 | |
308 |
"""Schemas below describe parameters of Maelis wrapper around updateFamily endpoint""" |
|
309 | ||
308 | 310 |
UPDATE_COORDINATE_SCHEMA = { |
309 | 311 |
'$schema': 'http://json-schema.org/draft-04/schema#', |
310 | 312 |
'title': 'Update coordinate', |
311 |
'description': "Mise à jour des coordonnées d'une personne",
|
|
313 |
'description': "Mise à jour des coordonnées d'un responsable légal",
|
|
312 | 314 |
'type': 'object', |
313 | 315 |
'properties': { |
314 | 316 |
'adresse': ADDRESS_SCHEMA, |
315 | 317 |
'contact': CONTACT_SCHEMA, |
316 | 318 |
'profession': PROFESSION_SCHEMA, |
317 | 319 |
'CAFInfo': CAFINFO_SCHEMA, |
318 | 320 |
}, |
319 | 321 |
'unflatten': True, |
320 |
- |