OpenAPITools / OpenAPITools/openapi-generator

generator ignore package passed for model and API for go generator

Open
#2,803 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug Server: Go
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
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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.