-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
(fix) add response headers in fetch client #1695
Conversation
1d4e98c
to
ac9da7c
Compare
Hi @melloware, Please give me some time to think about this response. |
Yep converting to draft was just seeing if that is what the OP meant! |
@melloware Thanks, the PR looks good to me. I think Orval doesn't need to check to add the headers to the response only when custom headers are detected in openapi.yaml. Headers should be included by default. |
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 update. I have added comments where additional updates are needed.
@soartec-lab you are more familiar with this code did you want to submit a PR and I can close this one? |
OK changes made |
ee8e99d
to
4481143
Compare
Thanks! |
@soartec-lab not sure what you mean by regenerate but i updated |
Sorry for confusing you. To be more precise, I would like you to regenerate the sample app using the following command. cd samples
yarn generate-api --force Your change adds |
Weird when I run that command in samples I get..
|
Would you like to just merge this PR and then you can take a look? |
@melloware |
Oh sure thing my branch should be editable for you! |
@melloware Or if you like, you can switch to this PR. |
Fix #1694 add response headers in fetch client