mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
added few conditions so it is possbile to load dynamic schemas
This commit is contained in:
parent
f38c7a462e
commit
5541b3fd0c
3 changed files with 31 additions and 7 deletions
|
|
@ -116,7 +116,11 @@ class InputEntity(EndpointEntity):
|
|||
|
||||
def schema_validations(self):
|
||||
# Input entity must have file parent.
|
||||
if not self.file_item:
|
||||
if (
|
||||
not self.is_dynamic_schema_node
|
||||
and not self.is_in_dynamic_schema_node
|
||||
and self.file_item is None
|
||||
):
|
||||
raise EntitySchemaError(self, "Missing parent file entity.")
|
||||
|
||||
super(InputEntity, self).schema_validations()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue