added few conditions so it is possbile to load dynamic schemas

This commit is contained in:
iLLiCiTiT 2021-08-10 12:16:57 +02:00
parent f38c7a462e
commit 5541b3fd0c
3 changed files with 31 additions and 7 deletions

View file

@ -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()