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
Commit 92d5b73
Browse filesBrowse the repository at this point in the historyBrowse files
[rust] fix: map-typed query parameters do not compile (.to_string() on a HashMap) (#24896)
* [rust] fix: map-typed query parameters called .to_string() on a HashMap
HashMap implements neither Display nor ToString, so the generated client
did not compile (E0599) wherever a map-typed query parameter fell through
to the scalar path: a required non-nullable map in both reqwest and
reqwest-trait, and the nullable/optional non-deepObject fallthroughs in
reqwest-trait. Serialize the map as one json-encoded parameter with
serde_json::to_string, exactly how reqwest's optional branch already
handles non-primitive parameters.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GcwZ1arjLZNpetHz2a3TJz
* [rust] test: pin the required map-query assertion to its parameter
`serde_json::to_string(&` matched any call in the file; match on the
`labels` key instead, which both libraries emit.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments