From 25a0f902ab174320d384b9423f183572d2123dea Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 4 Dec 2020 21:23:07 +0100 Subject: [PATCH] sub dicts are required --- entity_validator.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/entity_validator.py b/entity_validator.py index 3c5b66d..fbcd49e 100644 --- a/entity_validator.py +++ b/entity_validator.py @@ -79,13 +79,16 @@ def validate(entity): schema = { 'finanzdaten': { - 'type': 'dict', + 'type': 'dict', + 'required': True, 'schema': schema_fin}, 'mitgliederdaten': { - 'type': 'dict', + 'type': 'dict', + 'required': True, 'schema': schema_membership}, 'stammdaten': { - 'type': 'dict', + 'type': 'dict', + 'required': True, 'schema': schema_base}, 'id': { 'type': 'string',