Closed nimo23 closed 1 week ago
No headers will be in the response object. The code looks like:
const res = await fetch(getTaskResourceListAllUrl(params), { ...options, method: 'GET' } ) const data = await res.json() // Issue: please add the "res.headers" into the return statement return { status: res.status, data } }
Add headers in the response object, at least when openapi.json describes custom headers for an API endpoint.
headers
response
openapi.json
"orval": "^7.2.0",
@nimo23 can you review my PR i think that is what you are asking for?
What are the steps to reproduce this issue?
What happens?
No headers will be in the response object. The code looks like:
What were you expecting to happen?
Add
headers
in theresponse
object, at least whenopenapi.json
describes custom headers for an API endpoint.What versions are you using?
"orval": "^7.2.0",