swagger-api / swagger-api/swagger-codegen

go Generator

Open
#9,418 2 comments 1 reaction 0 assignees View on GitHub

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.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.