OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.65k stars 6.53k forks source link

generator ignore package passed for model and API for go generator #2803

Open waytoharish opened 5 years ago

waytoharish commented 5 years ago

Hi Team, I am trying to generate the Go-Srever code using the openapi-generator-cli.jar and passing model and API package name but code is getting generated in the same folder only. Please suggest me if i am doing anything wrong.Command used- java -jar openapi-generator-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l go-server -o testgo --model-package=api.model image

auto-labeler[bot] commented 5 years ago

👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

karismann commented 5 years ago

@waytoharish as mentionned in #2752 , the go generator doesn't actually support generating model and api in a specific folder