toulouse-maelis: manage authorised persons on main WS (#71646)

This commit is contained in:
Nicolas Roche 2022-11-23 21:19:58 +01:00
parent 5e06fb43a2
commit 25de4254aa
1 changed files with 10 additions and 0 deletions

View File

@ -552,6 +552,15 @@ CHILD_SCHEMA = {
},
'medicalRecord': {'oneOf': [MEDICALRECORD_SCHEMA, {'type': 'null'}]},
'paiInfoBean': {'oneOf': [PAIINFO_SCHEMA, {'type': 'null'}]},
'authorizedPersonList': {
'oneOf': [
{
'type': 'array',
'items': AUTHORIZED_PERSON_SCHEMA,
},
{'type': 'null'},
],
},
},
'additionalProperties': False,
}
@ -646,6 +655,7 @@ CREATE_CHILD_SCHEMA['unflatten'] = True
del CREATE_CHILD_SCHEMA['properties']['dietcode']
del CREATE_CHILD_SCHEMA['properties']['medicalRecord']
del CREATE_CHILD_SCHEMA['properties']['paiInfoBean']
del CREATE_CHILD_SCHEMA['properties']['authorizedPersonList']
UPDATE_CHILD_SCHEMA = copy.deepcopy(CREATE_CHILD_SCHEMA)