schema: allow empty lists in resource schema

Change-Id: I9249e29deef00d4dd68f89c704ef1d3093c799fd
This commit is contained in:
Andre Puschmann 2020-11-11 16:58:35 +01:00
parent 5e6d5ffd01
commit 635edb33c3
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ def validate(config, schema):
if util.is_dict(value):
nest(path, value, schema)
return
if util.is_list(value) and value:
if util.is_list(value):
for list_v in value:
validate_item(path, list_v, schema)
return