mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
make sure all schemas are validated
This commit is contained in:
parent
fba0c62afd
commit
a647f1628a
2 changed files with 8 additions and 4 deletions
|
|
@ -251,8 +251,10 @@ class DictMutableKeysEntity(EndpointEntity):
|
|||
)
|
||||
raise EntitySchemaError(self, reason)
|
||||
|
||||
for child_obj in self.children_by_key.values():
|
||||
child_obj.schema_validations()
|
||||
key = "__tmp__"
|
||||
tmp_child = self._add_key(key)
|
||||
tmp_child.schema_validations()
|
||||
self.children_by_key.pop(key)
|
||||
|
||||
def get_child_path(self, child_obj):
|
||||
result_key = None
|
||||
|
|
|
|||
|
|
@ -167,8 +167,10 @@ class ListEntity(EndpointEntity):
|
|||
)
|
||||
raise EntitySchemaError(self, reason)
|
||||
|
||||
for child_obj in self.children:
|
||||
child_obj.schema_validations()
|
||||
idx = 0
|
||||
tmp_child = self._add_new_item(idx)
|
||||
tmp_child.schema_validations()
|
||||
self.children.pop(idx)
|
||||
|
||||
def get_child_path(self, child_obj):
|
||||
result_idx = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue