OpenAPITools / OpenAPITools/openapi-generator
generator ignore package passed for model and API for go generator
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
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

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the java -jar openapi-generator-cli.jar generate command with the go-server generator and --model-package=api.model option. Inspect the generated model and API directories and compare them with the requested package setting; done means the option produces the expected package structure or its unsupported behavior is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, java, openapi
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100