Open rmohta opened 4 years ago
Image rmohta/swagger-generator:2.4.13-issue-10243 has the above patched code, and it's working as expected.
Hello,
This issue still present on 2.4.21.
I'm facing the same issue as @rmohta , is there any chance to have a fix included in 2.4.22?
If you want to ensure that there's no breaking change, it's also possible to add a new variable dedicated to client generator.
Description
While using swaggerapi/swagger-generator:2.4.13 docker image in a multi-container pod along with swagger-editor, noticed server code generation response does not use the value of GENERATOR_HOST env variable. Whereas client code generation honors the value of GENERATOR_HOST
Swagger-codegen version
Swagger declaration file content or url
Use petstore swagger file, which is embedded in the the editor.
Command line used for generation
Not Applicable
Steps to reproduce
Use Developer Tools in Chrome to track Network requests, and preview response.
docker run -d -e GENERATOR_HOST=http://locahost:81 -p 80:8080 swaggerapi/swagger-generator:2.4.13
Related issues/PRs
Unable to find any related
Suggest a fix/enhancement
Able to fix using the below patch