OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.59k stars 6.52k forks source link

[Kotlin] Get rid of "infrastructure" folder inside generated artifact package name #6818

Open tgerth opened 4 years ago

tgerth commented 4 years ago
Description

I have a config file which specifies the apiPackage, modelPackage and invokerPackage. With apiPackage and modelPackage it works but for the invokerPackage it always takes the default org/openapitools/client/ directory (and the folder is named infrastructure instead of invoker?). With Java it works, so it must have something to do with openapi itself.

openapi-generator version

5.0.0-SNAPSHOT

Command line used for generation

java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i /path/to/swagger.json -g kotlin -o /path/to/output -c /path/to/config.json --additional-properties useRxJava2=true

config.json

{ "apiPackage":"ch.something.something.httpclient.api", "modelPackage":"ch.something.something.httpclient.model", "invokerPackage":"ch.something.something.httpclient.invoker", "library": "jvm-retrofit2" }

tgerth commented 4 years ago

sorry my bad, when I was looking through the config options they were for java and not for kotlin 🤦🏻‍♀️

tgerth commented 4 years ago

How can I get rid of the name "infrastructure"?