Created by: icubbon
Revert a change to the Go Client code that broke the ability to download files. This reverts the change made during the switch go-experimental from https://github.com/OpenAPITools/openapi-generator/commit/14d41310b968b47bf2a6bc89bbc9c7dadffaca06
Fix for https://github.com/OpenAPITools/openapi-generator/issues/8039
The decoding for type file
had been removed when the generator was switched to go-experimental
Re-added the code that existed in the 4.x release to handle downloading a file.
Tested by generating the pet-store examples to ensure that the previous code for downloading a file was present. Generated an internal Go Rest API client that downloads a file from a Rest API. Then downloaded a file successfully.
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvn clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
,5.1.x
,6.0.x
-
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
@antihax @grokify @kemokemo @jirikuncar @ph4r5h4d