diff --git a/docs/customization.html b/docs/customization.html index 50a483eb3db..f22f4cf101e 100644 --- a/docs/customization.html +++ b/docs/customization.html @@ -215,8 +215,11 @@ TypeScriptNodeClientCodegen.java "apiPackage" : "petstore" } +
You can use also config.yml
with following equivalent example:
apiPackage: "petstore"
+
Supported config options can be different per language. Running config-help -g {lang}
will show available options.
-These options are applied via configuration file (e.g. config.json) or by passing them with -D{optionName}={optionValue}
. (If -D{optionName}
does not work, please open a ticket and we'll look into it)
-D{optionName}={optionValue}
. (If -D{optionName}
does not work, please open a ticket and we'll look into it)
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar config-help -g java
Output
@@ -246,6 +249,12 @@ TypeScriptNodeClientCodegen.java "library":"feign" } +Or if you preffer yaml format it can look like
+groupId: "com.my.company"
+artifactId: "MyClient"
+artifactVersion: "1.2.0"
+library: "feign"
+
For all the unspecified options default values will be used.
Another way to override default options is to extend the config class for the specific language.
To change, for example, the prefix for the Objective-C generated files, simply subclass the ObjcClientCodegen.java
:
or
--import-mappings Pet=my.models.MyPet --import-mappings Order=my.models.MyOrder
-