From cdb7b2f9e1c851e8a909c5ecd09fd06f1dc5c9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=84=B1=EC=9A=B1?= <94329093+uk1996@users.noreply.github.com> Date: Tue, 24 Oct 2023 19:18:01 +0900 Subject: [PATCH] Handle Optional Query Param --- fastapi_gateway/utils/query.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fastapi_gateway/utils/query.py b/fastapi_gateway/utils/query.py index 40b9802..fffc8af 100644 --- a/fastapi_gateway/utils/query.py +++ b/fastapi_gateway/utils/query.py @@ -21,6 +21,10 @@ async def unzip_query_params( response_query_params = {} for key in necessary_params: value = all_params.get(key) + + if value is None: + continue + serialized_dict = await serialize_query_content(key=key, value=value) response_query_params.update(serialized_dict) return response_query_params