Skip to content

Commit c52096c

Browse files
author
Rares Polenciuc
committed
feat: add extended types serializer
Implement ExtendedTypesSerDes - Plain JSON for primitives (str, int, float, bool, None) - Plain JSON for simple lists containing only primitives - Extended format for complex types (datetime, Decimal, UUID, etc.) - Support datetime/date with ISO format encoding - Handle Decimal with string representation
1 parent 6beb550 commit c52096c

3 files changed

Lines changed: 1126 additions & 27 deletions

File tree

src/aws_durable_execution_sdk_python/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,7 @@ def __str__(self) -> str:
168168
A string in the format "type: message"
169169
"""
170170
return f"{self.type}: {self.message}"
171+
172+
173+
class SerDesError(DurableExecutionsError):
174+
"""Raised when serialization fails."""

0 commit comments

Comments
 (0)