From 6f182821c424f25346ffc627bf2a8b0bf0506bc8 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Sat, 3 May 2025 14:47:07 -0700 Subject: [PATCH] fix: Update operation_parser.py --- .../tools/openapi_tool/openapi_spec_parser/operation_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/adk/tools/openapi_tool/openapi_spec_parser/operation_parser.py b/src/google/adk/tools/openapi_tool/openapi_spec_parser/operation_parser.py index ace4746..a7bed0f 100644 --- a/src/google/adk/tools/openapi_tool/openapi_spec_parser/operation_parser.py +++ b/src/google/adk/tools/openapi_tool/openapi_spec_parser/operation_parser.py @@ -84,7 +84,7 @@ class OperationParser: description if not schema.description else schema.description ) # param.required can be None - required = param.required if param.required else False + required = param.required if param.required is not None else False self.params.append( ApiParameter(