fix(typescript-fetch): send query params with JSON content as JSON #25878
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 338 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25878"
general
weight: 0.35
thekhegay
Query param with
content: application/jsonfrom #13222 is sent like plain one: object goes throughquerystringasfilter[duration_min]=1, array is joined with commas.ExtendedCodegenParameterdidnt even copyqueryIsJsonMimeType, headers got same thing in #25088Now such param is sent as
JSON.stringifyof value. Param that refs generated model goes through itsToJSONfirst (not withwithoutRuntimeChecks, same as request body), sets throughArray.from. Added test inTypeScriptFetchClientCodegenTest, generated clients compile with tsc 6 strict in both modes, regenerated typescript-fetch samples: no changesFixes #13222
PR checklist
Commit all changed files.
@TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx @macjohnny @topce @akehir @petejohansonxo @amakhrov @davidgamero @mkusaka @joscha @KannaKim
<!-- This is an auto-generated description by cubic. -->
---
Summary by cubic
Fixes sending query parameters with
application/jsoncontent as JSON instead of plain form encoding in thetypescript-fetchclient. Previously objects were stringified throughquerystring(e.g.filter[duration_min]=1) and arrays were comma-joined; now the value is passed throughJSON.stringify, using the model'sToJSONwhen available andArray.fromfor unique item sets. Adds tests and regenerates samples with no output changes. Fixes #13222.<sup>Written for commit 2480595e550d029683b0f7fc07846e4cb5dd33bc. Summary will update on new commits.</sup>
<a href="https://cubic.dev/pr/OpenAPITools/openapi-generator/pull/25878?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->