Bug Report Checklist
Description
For Golang need to make HTTPResponse.Body readable again
Now after generating code, the generator read the Http Body one and closed it. After that user cannot read the Body again out the generated client. I suggest making the Body readable again.
openapi-generator version
4.2.3
Suggest a fix
Need to change in the templates localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)
to
localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody))
Bug Report Checklist
Description
For Golang need to make HTTPResponse.Body readable again
Now after generating code, the generator read the Http Body one and closed it. After that user cannot read the Body again out the generated client. I suggest making the Body readable again.
openapi-generator version
4.2.3
Suggest a fix
Need to change in the templates
localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)to