When I run swagger-codegen-cli generate against a Swagger specification, it defaults to https rather than http. It is not clear to me why this is happening and any help would be appreciated.
2.4.0-SNAPSHOT
https://gist.github.com/mcfilib/dc23620cddc2581979e54fd58fd3e1d9
docker run --network host --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
-i http://0.0.0.0:3000/swagger_doc.json \
-l elm \
-o /local/elm-kang
.json file form the gist above to a directory of your choice as swagger_doc.json.json using a websever e.g. python -m SimpleHTTPServer 3000.json file?I was able to fix this by adding the following to my Swagger json.
schemes":["http"]
Most helpful comment
I was able to fix this by adding the following to my Swagger json.