fix: path parameter extraction for complex Google API endpoints

Merge https://github.com/google/adk-python/pull/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=https://github.com/google/adk-python/pull/1815 from goldylocks87:fix-issue-1814-path-parameter-extraction af5508ec6975b1ccbc34931a0041e422ee259c16
PiperOrigin-RevId: 794301898
This commit is contained in:
Goldy
2025-08-12 16:02:11 -07:00
committed by Copybara-Service
parent bb3735c9ca
commit 54680edf3c
2 changed files with 760 additions and 1 deletions
@@ -393,7 +393,7 @@ class GoogleApiToOpenApiConverter:
param = {
"name": param_name,
"in": "query",
"in": param_data.get("location", "query"),
"description": param_data.get("description", ""),
"required": param_data.get("required", False),
"schema": self._convert_parameter_schema(param_data),
File diff suppressed because it is too large Load Diff