Files
zulip/zerver
Prakhar Pratyush 51711bd3d9 push_notifications: Parse push/e2ee/notify response using Pydantic.
In `send_push_notifications`, we were manually asserting types of the
fields returned by the `remotes/push/e2ee/notify` endpoint at runtime
and constructed the `response_data` data structure for further use.

Pydantic is the perfect tool for this task.

This commit updates the concerned code to use Pydantic's `TypeAdapter`.

No functional change.

Fixes part of #35368.

(cherry picked from commit 5a37942c61)
2025-08-28 17:34:20 -07:00
..
2025-07-30 13:45:53 +00:00