Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #1600
Closed
Open
Issue created Dec 03, 2018 by Administrator@rootContributor

[go] Bug: Invalid generated code for client when apiKey in cookie is used.

Created by: dmascialino

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: 33016f27 )

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
Assignee
Assign to
Time tracking