mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
allow to have not set label on modifiable dict with enabled collapsible_key
This commit is contained in:
parent
03bd7bff9b
commit
32c7382b76
1 changed files with 9 additions and 0 deletions
|
|
@ -226,7 +226,16 @@ class DictMutableKeysEntity(EndpointEntity):
|
|||
self.is_group = True
|
||||
|
||||
def schema_validations(self):
|
||||
# Allow to have not set label if keys are collapsible
|
||||
# - this it to bypass label validation
|
||||
used_temp_label = False
|
||||
if self.is_group and not self.label and self.collapsible_key:
|
||||
used_temp_label = True
|
||||
self.label = "LABEL"
|
||||
|
||||
super(DictMutableKeysEntity, self).schema_validations()
|
||||
if used_temp_label:
|
||||
self.label = None
|
||||
|
||||
if not self.schema_data.get("object_type"):
|
||||
reason = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue