Projet

Général

Profil

0004-toulouse_maelis-modify-coordinate-schema-desciption-.patch

Nicolas Roche, 18 juillet 2022 01:50

Télécharger (1,37 ko)

Voir les différences:

Subject: [PATCH 4/5] toulouse_maelis: modify coordinate schema desciption
 (#67326)

 passerelle/contrib/toulouse_maelis/schemas.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
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
-