From 9bdf7dc2148866b6d937ceacfff20fe2fe2ebe68 Mon Sep 17 00:00:00 2001 From: Raman369AI Date: Mon, 22 Sep 2025 18:25:07 -0500 Subject: [PATCH] fix: Change default return schema type from 'Any' to 'object' in OpenAPI operation parser - Updated OperationParser to use 'object' as default return type instead of 'Any' - This provides better type consistency for OpenAPI operations - Improves schema validation and type inference --- .../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 f7a577afb2..3076cd8502 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 @@ -165,7 +165,7 @@ def _process_return_value(self) -> Parameter: """Returns a Parameter object representing the return type.""" responses = self._operation.responses or {} # Default to Any if no 2xx response or if schema is missing - return_schema = Schema(type='Any') + return_schema = Schema(type='object') # Take the 20x response with the smallest response code. valid_codes = list(