Skip to content

Commit 0c5ca42

Browse files
bchamppAlex Wang
authored andcommitted
fix: add to_dict() for CheckpointUpdatedExecutionState and fix deserialization for CheckpointDurableExecutionRequest
1 parent c2bc80d commit 0c5ca42

File tree

1 file changed

+10
-6
lines changed
  • src/aws_durable_execution_sdk_python_testing

1 file changed

+10
-6
lines changed

src/aws_durable_execution_sdk_python_testing/model.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,20 +1985,24 @@ def from_dict(
19851985
error=ErrorObject.from_dict(update_data["Error"])
19861986
if update_data.get("Error")
19871987
else None,
1988-
context_options=ContextOptions(**update_data["ContextOptions"])
1988+
context_options=ContextOptions.from_dict(
1989+
update_data["ContextOptions"]
1990+
)
19891991
if update_data.get("ContextOptions")
19901992
else None,
1991-
step_options=StepOptions(**update_data["StepOptions"])
1993+
step_options=StepOptions.from_dict(update_data["StepOptions"])
19921994
if update_data.get("StepOptions")
19931995
else None,
1994-
wait_options=WaitOptions(**update_data["WaitOptions"])
1996+
wait_options=WaitOptions.from_dict(update_data["WaitOptions"])
19951997
if update_data.get("WaitOptions")
19961998
else None,
1997-
callback_options=CallbackOptions(**update_data["CallbackOptions"])
1999+
callback_options=CallbackOptions.from_dict(
2000+
update_data["CallbackOptions"]
2001+
)
19982002
if update_data.get("CallbackOptions")
19992003
else None,
2000-
chained_invoke_options=ChainedInvokeOptions(
2001-
**update_data["ChainedInvokeOptions"]
2004+
chained_invoke_options=ChainedInvokeOptions.from_dict(
2005+
update_data["ChainedInvokeOptions"]
20022006
)
20032007
if update_data.get("ChainedInvokeOptions")
20042008
else None,

0 commit comments

Comments
 (0)