added ability to se skip paths in template data

This commit is contained in:
iLLiCiTiT 2021-06-01 01:18:00 +02:00
parent 467a3969cb
commit 027d0d4053

View file

@ -52,6 +52,11 @@ def _fill_schema_template_data(
if required_keys is None:
first = True
if "skip_paths" in template_data:
skip_paths = template_data["skip_paths"]
if not isinstance(skip_paths, list):
skip_paths = [skip_paths]
# Cleanup skip paths (skip empty values)
skip_paths = [path for path in skip_paths if path]