0005-toulouse_maelis-relax-constaint-on-family-schema-673.patch
passerelle/contrib/toulouse_maelis/schemas.py | ||
---|---|---|
265 | 265 | |
266 | 266 | |
267 | 267 |
FAMILY_SCHEMA = { |
268 | 268 |
'$schema': 'http://json-schema.org/draft-04/schema#', |
269 | 269 |
'title': 'Family', |
270 | 270 |
'description': 'Informations pour créer ou mettre à jour une famille', |
271 | 271 |
'type': 'object', |
272 | 272 |
'required': ['categorie', 'situation'], |
273 |
"oneOf": [ |
|
274 |
{"required": ['rl1']}, |
|
275 |
{"required": ['rl2']}, |
|
276 |
], |
|
277 | 273 |
'properties': { |
278 | 274 |
'categorie': { |
279 | 275 |
'description': 'Categorie (depuis référenciel)', |
280 | 276 |
'type': 'string', |
281 | 277 |
}, |
282 | 278 |
'situation': { |
283 | 279 |
'description': 'Situation familiale (depuis référenciel)', |
284 | 280 |
'type': 'string', |
285 |
- |