validate children on schema validations only if was not used from schema

This commit is contained in:
iLLiCiTiT 2021-07-12 15:07:35 +02:00
parent 08e8f60161
commit ff7ccfecba

View file

@ -187,7 +187,11 @@ class ListEntity(EndpointEntity):
child_validated = True
break
if not child_validated:
# Do not validate if was used schema or template
# - that is validated on first created children
# - it is because template or schema can use itself inside children
# TODO Do validations maybe store to `schema_hub` what is validated
if not self._schema_template_used and not child_validated:
idx = 0
tmp_child = self._add_new_item(idx)
tmp_child.schema_validations()