fix(validation): improve variable handling and validation (#9578)

This commit is contained in:
-LAN-
2024-10-21 23:33:16 +08:00
committed by GitHub
parent 495cf58014
commit 740a723072
3 changed files with 14 additions and 4 deletions

View File

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