<!-- Please follow the issue template below for bug reports and feature requests. Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar --> ##### Description The client code generated for go, when `cookie` option is used for apiKey (as described here: https://swagger.io/docs/specification/authentication/api-keys/ ) is broken. ##### openapi-generator version 3.3.4-SNAPSHOT (commit: 33016f279029d0d82884b5450cfd2d8ccd0957ea ) ##### OpenAPI declaration file content or url https://gist.github.com/dmascialino/016fd42979b4736658d91a303404dba9 ##### Command line used for generation openapi-generator generate -i api_defenition.yaml -g go -o openapi ##### Steps to reproduce ``` go build ./openapi # openapi_example/openapi openapi/api_default.go:67:8: key declared and not used ```
Description
The client code generated for go, when
cookieoption is used for apiKey (as described here: https://swagger.io/docs/specification/authentication/api-keys/ ) is broken.openapi-generator version
3.3.4-SNAPSHOT (commit: 33016f2 )
OpenAPI declaration file content or url
https://gist.github.com/dmascialino/016fd42979b4736658d91a303404dba9
Command line used for generation
openapi-generator generate -i api_defenition.yaml -g go -o openapi
Steps to reproduce