schema: allow empty lists in resource schema
Change-Id: I9249e29deef00d4dd68f89c704ef1d3093c799fd
This commit is contained in:
parent
5e6d5ffd01
commit
635edb33c3
|
@ -307,7 +307,7 @@ def validate(config, schema):
|
||||||
if util.is_dict(value):
|
if util.is_dict(value):
|
||||||
nest(path, value, schema)
|
nest(path, value, schema)
|
||||||
return
|
return
|
||||||
if util.is_list(value) and value:
|
if util.is_list(value):
|
||||||
for list_v in value:
|
for list_v in value:
|
||||||
validate_item(path, list_v, schema)
|
validate_item(path, list_v, schema)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue