diff --git a/pype/settings/entities/input_entities.py b/pype/settings/entities/input_entities.py index ce512519a1..caa2b5b1e3 100644 --- a/pype/settings/entities/input_entities.py +++ b/pype/settings/entities/input_entities.py @@ -101,7 +101,7 @@ class InputEntity(EndpointEntity): "{}: Missing parent file entity.".format(self.path) ) - super(EndpointEntity, self).schema_validations() + super(InputEntity, self).schema_validations() @property def value(self): diff --git a/pype/settings/entities/item_entities.py b/pype/settings/entities/item_entities.py index ffdee0fb8d..1692c3bf42 100644 --- a/pype/settings/entities/item_entities.py +++ b/pype/settings/entities/item_entities.py @@ -206,6 +206,15 @@ class ListStrictEntity(ItemEntity): if not self.group_item and not self.is_group: self.is_group = True + def schema_validations(self): + # List entity must have file parent. + if not self.file_item and not self.is_file: + raise ValueError( + "{}: Missing file entity in hierarchy.".format(self.path) + ) + + super(ListStrictEntity, self).schema_validations() + def get_child_path(self, child_obj): result_idx = None for idx, _child_obj in enumerate(self.children):