From 1c8af7cac480c49e2d9ce7ab338718187904087d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalle=20M=C3=B8ller?= Date: Fri, 14 Nov 2025 10:53:53 +0100 Subject: [PATCH] Add 'mode' field to PydanticDumpOptions TypedDict This is used when objects like IPv4Address or other custom objects is not reconised by the json serializer. --- src/quart_schema/typing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quart_schema/typing.py b/src/quart_schema/typing.py index 3304e6f..46ed851 100644 --- a/src/quart_schema/typing.py +++ b/src/quart_schema/typing.py @@ -91,6 +91,7 @@ async def _make_request( class PydanticDumpOptions(TypedDict): + mode: NotRequired[Literal['json', 'python']] by_alias: NotRequired[bool] exclude_defaults: NotRequired[bool] exclude_none: NotRequired[bool]