From 910c0201b429f70330773a0964eae4155d9c0310 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Oct 2025 23:43:50 +0300 Subject: [PATCH] fix json serializat --- common_lib/services/socket_internal.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common_lib/services/socket_internal.py b/common_lib/services/socket_internal.py index 5dc2e9d..17161e0 100644 --- a/common_lib/services/socket_internal.py +++ b/common_lib/services/socket_internal.py @@ -14,7 +14,7 @@ async def send_internal_socket_msg( with_httpexception = False ) -> dict: if isinstance(message, BaseModel): - message = message.model_dump() + message = message.model_dump(mode="json") try: response = await client.post( diff --git a/pyproject.toml b/pyproject.toml index 57084b7..70829eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "common-lib" -version = "0.0.29" +version = "0.0.30" description = "Библиотека общих компонентов для микросервисов yobble" authors = [{ name = "cheykrym", email = "you@example.com" }] license = "MIT"