-
-
Notifications
You must be signed in to change notification settings - Fork 563
Fix Request parameter being ignored by client methods #2407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: f889953 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for openapi-ts canceled.
|
d37e011
to
03fb01d
Compare
Note: It seems this has been broken since the introduction of the feature: #1907 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch and thanks for the fix. I've left some comments.
03fb01d
to
c63a39c
Compare
c63a39c
to
f889953
Compare
@gzm0 Thanks for the feedback. Changes pushed. Now testing for all methods and removed the duplicate test for setting |
Changes
This fixes a bug in openapi-fetch where the client methods would ignore the
Request
parameter being passed in. Previously passing in theRequest
parameter works when constructing the client but not if passed in viaGET
,POST
, etc. on a constructed client.Related to but not blocking #2224
How to Review
No impact to the API, adds tests for checking the functionality in both cases.
Checklist
docs/
updated (if necessary)pnpm run update:examples
run (only applicable for openapi-typescript)