From 79ff95177c473ab340782b0a2e904ba1cb9a2168 Mon Sep 17 00:00:00 2001 From: Guy Zylberberg Date: Tue, 8 Aug 2023 18:18:34 +0300 Subject: [PATCH 1/3] Ran bump-pydantic --- fastapi_websocket_pubsub/event_broadcaster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_websocket_pubsub/event_broadcaster.py b/fastapi_websocket_pubsub/event_broadcaster.py index 5efec7d..9e67484 100644 --- a/fastapi_websocket_pubsub/event_broadcaster.py +++ b/fastapi_websocket_pubsub/event_broadcaster.py @@ -18,7 +18,7 @@ class BroadcastNotification(BaseModel): notifier_id: NotifierId topics: TopicList - data: Any + data: Any = None class EventBroadcasterException(Exception): From 021d50b5a849bcb2d700a8eca6ae7357db13ff4b Mon Sep 17 00:00:00 2001 From: Guy Zylberberg Date: Tue, 8 Aug 2023 18:18:50 +0300 Subject: [PATCH 2/3] Update Pydantic to v2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 32d4b7e..84c601b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ fastapi-websocket-rpc>=0.1.24,<1 permit-broadcaster[redis,postgres,kafka]==0.2.4 -pydantic>=1.9.1,<2 +pydantic>=2.21.1,<3 websockets>=10.3,<11 \ No newline at end of file From e7e9646736b569c0c606e3671433c89ef11d4413 Mon Sep 17 00:00:00 2001 From: Guy Zylberberg Date: Tue, 8 Aug 2023 19:02:37 +0300 Subject: [PATCH 3/3] Fix Pydantic version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 84c601b..64a4faa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ fastapi-websocket-rpc>=0.1.24,<1 permit-broadcaster[redis,postgres,kafka]==0.2.4 -pydantic>=2.21.1,<3 +pydantic>=2.1.1,<3 websockets>=10.3,<11 \ No newline at end of file