You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Object-valued OpenAPI query parameters are serialized as dictionary strings #7233
RestApiTool passes object-valued query parameters directly to the HTTP client. For OpenAPI's default query serialization (style: form, explode: true), this produces one stringified dictionary value instead of separate query parameters.
Steps to Reproduce:
Create an OpenAPI operation with a query parameter like this:
Call the tool with {"filters": {"category": "books", "page": 2}}.
Inspect the outgoing query string.
Expected Behavior:
The outgoing query string is ?category=books&page=2.
Observed Behavior:
The request contains one stringified dictionary value, equivalent to ?filters=%7B%27category%27%3A+%27books%27%2C+%27page%27%3A+2%7D.
Environment Details:
ADK Library Version: 2.9.2
Desktop OS: macOS
Python Version: 3.13
Model Information:
Are you using LiteLLM: N/A
Which model is being used: N/A
🟡 Optional Information
Regression:
No known working version.
Logs:
N/A
Screenshots / Video:
N/A
Additional Context:
OpenAPI defaults query parameters to style: form, with explode defaulting to true for that style. The parsed operation retains those settings, but _prepare_request_params currently forwards the dictionary unchanged.
duplicate of #7204, filed three days earlier against the same code: _prepare_request_params hands an object-valued query parameter to httpx, which sends its python repr. #7204 covers your form/explode case plus deepObject and non-exploded arrays, and the open pull request #7208 handles all of them. the test from your #7234 passes unchanged with #7208 applied. please follow #7204. open a new issue if you want us to look at it again.
Activity
GWeale commentedon Sep 22, 2026
duplicate of #7204, filed three days earlier against the same code: _prepare_request_params hands an object-valued query parameter to httpx, which sends its python repr. #7204 covers your form/explode case plus deepObject and non-exploded arrays, and the open pull request #7208 handles all of them. the test from your #7234 passes unchanged with #7208 applied. please follow #7204. open a new issue if you want us to look at it again.