From 780595cf19804e0d788902201b2e59956de041e0 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 13 Sep 2022 07:53:30 -0400 Subject: [PATCH] Common: Use `simplify=True` in PydanticEventSerializer --- monkey/common/event_serializers/pydantic_event_serializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/event_serializers/pydantic_event_serializer.py b/monkey/common/event_serializers/pydantic_event_serializer.py index 87ac201f8..e1cb56142 100644 --- a/monkey/common/event_serializers/pydantic_event_serializer.py +++ b/monkey/common/event_serializers/pydantic_event_serializer.py @@ -19,7 +19,7 @@ class PydanticEventSerializer(IEventSerializer, Generic[T]): raise TypeError(f"Event object must be of type: {self._event_class.__name__}") try: - return event.dict() + return event.dict(simplify=True) except AttributeError as err: logger.error(f"Error occured while serializing an event {event}: {err}")