mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
validate children on schema validations only if was not used from schema
This commit is contained in:
parent
08e8f60161
commit
ff7ccfecba
1 changed files with 5 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue