Skip to content

Commit b48a3c4

Browse files
committed
different dictionary conversion
1 parent a3bd747 commit b48a3c4

File tree

1 file changed

+1
-1
lines changed
  • python_workflow_definition/src/python_workflow_definition

1 file changed

+1
-1
lines changed

python_workflow_definition/src/python_workflow_definition/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def load_json_str(cls: Type[T], json_data: Union[str, bytes]) -> dict:
210210
logger.info(
211211
"Successfully loaded and validated workflow model from JSON data."
212212
)
213-
return instance.model_dump()
213+
return dict(instance)
214214
except ValidationError: # Catch validation errors specifically
215215
logger.error("Workflow model validation failed.", exc_info=True)
216216
raise

0 commit comments

Comments
 (0)