sub dicts are required

This commit is contained in:
David Kilias 2020-12-04 21:23:07 +01:00
parent 79d60dc4d4
commit 25a0f902ab

View file

@ -79,13 +79,16 @@ def validate(entity):
schema = { schema = {
'finanzdaten': { 'finanzdaten': {
'type': 'dict', 'type': 'dict',
'required': True,
'schema': schema_fin}, 'schema': schema_fin},
'mitgliederdaten': { 'mitgliederdaten': {
'type': 'dict', 'type': 'dict',
'required': True,
'schema': schema_membership}, 'schema': schema_membership},
'stammdaten': { 'stammdaten': {
'type': 'dict', 'type': 'dict',
'required': True,
'schema': schema_base}, 'schema': schema_base},
'id': { 'id': {
'type': 'string', 'type': 'string',