fix(validation): improve variable handling and validation (#9578)
This commit is contained in:
parent
495cf58014
commit
740a723072
3 changed files with 14 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ class WorkflowToolConfigurationUtils:
|
|||
if not start_node:
|
||||
return []
|
||||
|
||||
return [VariableEntity(**variable) for variable in start_node.get("data", {}).get("variables", [])]
|
||||
return [VariableEntity.model_validate(variable) for variable in start_node.get("data", {}).get("variables", [])]
|
||||
|
||||
@classmethod
|
||||
def check_is_synced(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue