Skip to content

Commit 54680ed

Browse files
goldylocks87copybara-github
authored andcommitted
fix: path parameter extraction for complex Google API endpoints
Merge #1815 fix: path parameter extraction for complex Google API endpoints - Fix GoogleApiToOpenApiConverter to handle path parameters in complex endpoints like /v1/documents/{documentId}:batchUpdate - Use Google Discovery Document 'location' field - Add comprehensive test suite for Google Docs batchUpdate functionality - Verify parameter location handling for complex endpoint patterns - Test schema validation for BatchUpdateDocumentRequest/Response COPYBARA_INTEGRATE_REVIEW=#1815 from goldylocks87:fix-issue-1814-path-parameter-extraction af5508e PiperOrigin-RevId: 794301898
1 parent bb3735c commit 54680ed

File tree

2 files changed

+760
-1
lines changed

2 files changed

+760
-1
lines changed

src/google/adk/tools/google_api_tool/googleapi_to_openapi_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _convert_operation(
393393

394394
param = {
395395
"name": param_name,
396-
"in": "query",
396+
"in": param_data.get("location", "query"),
397397
"description": param_data.get("description", ""),
398398
"required": param_data.get("required", False),
399399
"schema": self._convert_parameter_schema(param_data),

0 commit comments

Comments
 (0)