docs
new-generator.md +55 -22
modules/…/…/…/…/…/services
org.openapitools.codegen.CodegenConfig +0 -2
new.sh +62 -16
+ 55
- 22
@@ -23,7 +23,7 @@ The minimum set of files required to create a new generator are:
@@ -43,8 +43,6 @@ Usage:
@@ -57,7 +55,8 @@ Examples:
@@ -66,7 +65,8 @@ Examples:
@@ -88,7 +88,8 @@ Creating modules/openapi-generator/src/main/java/org/openapitools/codegen/langua
@@ -150,7 +151,7 @@ The `templateDir` variable refers to the "current" template directory setting, a
@@ -158,7 +159,7 @@ This sets the "package" location for anything considered an API document. You mi
@@ -329,28 +330,60 @@ To compile quickly to test this out, you can run `mvn clean package -DskipTests`
This configuration file is passed to the generator's CLI tool during continuous integration builds, and many outputs are compiled and tested as a regression test on every build. Contributors are also asked to run `./bin/utils/ensure-up-to-date` before opening a pull request to regenerate all samples defined under `./bin/configs`. This allows maintainers to quickly verify whether changes impact other generators.
This configuration file can be used to demonstrate the default options for generation. A common option in most of these configs is to define the template directory as the generator's directory under `resources`. This allows template maintainers to modify and test out template changes which don't require recompilation of the entire project. You'd still need to recompile the project in full if you add or modify behaviors to the generator (such as adding a `CliOption`).
This script is often used to apply default options for generation. A common option in most of these script is to define the template directory as the generator's directory under `resources`. This allows template maintainers to modify and test out template changes which don't require recompilation of the entire project. You'd still need to recompile the project in full if you add or modify behaviors to the generator (such as adding a `CliOption`).
@@ -127,5 +127,3 @@ org.openapitools.codegen.languages.TypeScriptJqueryClientCodegen
+ 62
- 16
@@ -10,7 +10,7 @@ Stubs out files for new generators
@@ -21,7 +21,8 @@ Examples:
@@ -30,7 +31,8 @@ Examples:
@@ -54,7 +56,7 @@ checkPreviousGenType() {
@@ -71,7 +73,7 @@ while getopts ":hcsdtfHn:" arg; do
@@ -179,8 +181,8 @@ public class ${lang_classname} extends DefaultCodegen implements CodegenConfig {
@@ -199,17 +201,61 @@ echo "Creating modules/openapi-generator/src/main/resources/${gen_name_camel}-${