Skip to content

Commit 742c313

Browse files
Copilotardatan
andauthored
Fix: required query params incorrectly typed as optional when header params are present (#3653)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ardatan <20847995+ardatan@users.noreply.github.com>
1 parent 4ff3d29 commit 742c313

File tree

6 files changed

+66
-206
lines changed

6 files changed

+66
-206
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fets": patch
3+
---
4+
5+
Fix required query parameters becoming optional when mixed with header parameters in the client type generation. Previously, when an endpoint had both query and header parameters, required query parameters were incorrectly typed as optional. The fix correctly checks whether any parameter of the specific type (query or header) is marked as `required: true` instead of using a tuple check across all parameter types.

0 commit comments

Comments
 (0)