We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0897f commit 65a0d19Copy full SHA for 65a0d19
backend/app/infrastructure/kafka/events/base.py
@@ -24,7 +24,7 @@ class BaseEvent(AvroBase):
24
25
model_config = ConfigDict()
26
27
- @field_serializer('timestamp')
+ @field_serializer('timestamp', when_used='json')
28
def serialize_timestamp(self, dt: datetime) -> str:
29
return dt.isoformat()
30
0 commit comments