Project

General

Profile

0004-toulouse-maelis-child-bean-become-for-create-and-upd.patch

Nicolas Roche, 24 November 2022 11:38 AM

Download (1.51 KB)

View differences:

Subject: [PATCH 4/5] toulouse-maelis: child bean become for create and update
 (#71642)

 passerelle/contrib/toulouse_maelis/schemas.py | 4 ----
 1 file changed, 4 deletions(-)
passerelle/contrib/toulouse_maelis/schemas.py
574 574
        },
575 575
    },
576 576
    'unflatten': True,
577 577
    'additionalProperties': False,
578 578
}
579 579

  
580 580
CREATE_FAMILY_SCHEMA = copy.deepcopy(UPDATE_FAMILY_SCHEMA)
581 581
CREATE_FAMILY_SCHEMA['required'] = ['rl1', 'category', 'situation']
582
create_family_child_schema = CREATE_FAMILY_SCHEMA['properties']['childList']['oneOf'][0]['items']
583
del create_family_child_schema['properties']['bPhoto']
584
del create_family_child_schema['properties']['bLeaveAlone']
585
del create_family_child_schema['properties']['paiInfoBean']
586 582

  
587 583
CREATE_RL1_SCHEMA = copy.deepcopy(CREATE_FAMILY_SCHEMA)
588 584
del CREATE_RL1_SCHEMA['properties']['rl2']
589 585
del CREATE_RL1_SCHEMA['properties']['emergencyPersonList']
590 586
del CREATE_RL1_SCHEMA['properties']['childList']
591 587
del CREATE_RL1_SCHEMA['properties']['rl1']['properties']['contact']
592 588
del CREATE_RL1_SCHEMA['properties']['rl1']['properties']['profession']
593 589
del CREATE_RL1_SCHEMA['properties']['rl1']['properties']['CAFInfo']
594
-