-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Feature Request: have an option omit status
OR headers
OR both from fetch response
#1836
Comments
Well, we currently offer either the full response or control with a custom fetch. |
@soartec-lab thanks for your answer. But my generated code looks more like this:
So its working thanks to the |
@camillecroci |
@soartec-lab this work around works fine indeed so there is no emergency. But |
@camillecroci |
Hello !
Context
I started working with Orval 7.1.1. I have written a custom fetch function that was a variation around the provided example:
A recent PR also adds
headers
to the response.Problem
The
headers
of my responses can be quite big and I would prefer not to return them.It is possible to use the flag
includeHttpResponseReturnType
to stop gettingheaders
in the response, but it also removestatus
, which I need.Feature request
It would be nice to have 2 flags or have
includeHttpResponseReturnType
being able to be set tonone
,status
,headers
. That would allow to have none of them, or only headers, or only status returned.The text was updated successfully, but these errors were encountered: