swagger-api/swagger-codegen

directory structure of swagger generated code is inappropriate.

Open

#3.383 geöffnet am 15. Juli 2016

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Client: AndroidIssue: Bughelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Directory structure of swagger generated code is inappropriate, when the package name is supplied through config.json using -c option.

I have attached my swagger.yml file.

contents of config.json

{ "invokerPackage" : "in.lxltech", "apiPackage" : "in.lxltech.krayon", "modelPackage" : "in.lxltech.model" }

The command i'm using to generated code:-

java -jar swagger-codegen-cli.jar generate -i swagger.yml -l android --library=volley -o generated_source_code -c config.json

swagger generated code directory structure

in -lxltech -krayon -model

io -swagger -client -auth => files inside this directory have package name as 'in.lxltech.auth' but the directory structure is incorrect -request => files inside this directory have package name as 'in.lxltech.request' but the directory structure is incorrect

=> auth and request folders have to be placed under the directory 'in/lxltech', but it is placing under 'io/swagger/client'

Contributor Guide