Skip to content

Commit 6ee22eb

Browse files
authored
Update Workflow State JSON serialization (#638)
Signed-off-by: Bernd Verst <github@bernd.dev>
1 parent bd11de1 commit 6ee22eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/dapr-ext-workflow/dapr/ext/workflow/workflow_state.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,9 @@ def to_json(self):
6969
'serialized_input': self.__obj.serialized_input,
7070
'serialized_output': self.__obj.serialized_output,
7171
'serialized_custom_status': self.__obj.serialized_custom_status,
72-
'failure_details': self.__obj.failure_details
72+
'failure_details': {
73+
'message': self.__obj.failure_details.message,
74+
'error_type': self.__obj.failure_details.error_type,
75+
'stack_trace': self.__obj.failure_details.stack_trace
76+
}
7377
}

0 commit comments

Comments
 (0)