swagger-api / swagger-api/swagger-codegen
go Generator
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi Team,
I am trying to generate go-server code from swagger and passing api-package name and model-package name as mentioned in the cli-
"java -jar swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l go-server -o testSpring --api-package=test.api --model-package=test.model"
But my generate code files coming to the same folder.Please can somone help me how can i fragment the model and api code to specified folders.

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 with the CLI generate command shown in the issue and trace how the go-server generator handles the --api-package and --model-package options. Confirm whether those options are expected to control output folders; done means generated API and model files are placed in the requested separate locations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, java
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100