mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
added enum key validation
This commit is contained in:
parent
c1d6db4356
commit
3b217c57a2
1 changed files with 4 additions and 0 deletions
|
|
@ -252,6 +252,10 @@ class DictConditionalEntity(ItemEntity):
|
|||
else:
|
||||
raise SchemaDuplicatedKeys(self, child_entity.key)
|
||||
|
||||
# Enum key must match key regex
|
||||
if not KEY_REGEX.match(self.enum_key):
|
||||
raise InvalidKeySymbols(self.path, self.enum_key)
|
||||
|
||||
# Validate all remaining keys with key regex
|
||||
for children_by_key in self.non_gui_children.values():
|
||||
for key in children_by_key.keys():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue