Skip to content

Commit

Permalink
Adds generator default template engine (#11366)
Browse files Browse the repository at this point in the history
* Revert "Revert "Has generators set default template engine (#11245)" (#11316)"

This reverts commit 5798742.

* Only loads in the default template engine if the config file contains the generatorName

* Only sets templatingEngineName using condif default in one place

* Adds config files that lack generatorName

* Revert "Adds config files that lack generatorName"

This reverts commit 7dafc93.

* Adds generator default templating engine to the generator metadata
  • Loading branch information
spacether committed Jan 23, 2022
1 parent 28cc286 commit 78f4748
Show file tree
Hide file tree
Showing 151 changed files with 164 additions and 6 deletions.
1 change: 0 additions & 1 deletion bin/configs/python-experimental.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ generatorName: python-experimental
outputDir: samples/openapi3/client/petstore/python-experimental
inputSpec: modules/openapi-generator/src/test/resources/3_0/python-experimental/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
templateDir: modules/openapi-generator/src/main/resources/python-experimental
templatingEngineName: handlebars
additionalProperties:
packageName: petstore_api
recursionLimit: "1234"
1 change: 1 addition & 0 deletions docs/generators/ada-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the ada-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | Ada | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Ada server implementation (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/ada.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the ada Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Ada | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Ada client implementation (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the android Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Java | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Android client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/apache2.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the apache2 Generator
| generator stability | STABLE | |
| generator type | CONFIG | |
| generator language | Java | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Apache2 Config file with the permissions | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/apex.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the apex Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Apex | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Apex API client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/asciidoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the asciidoc Generator
| generator stability | STABLE | |
| generator type | DOCUMENTATION | |
| generator language | Java | |
| generator default templating engine | mustache | |
| helpTxt | Generates asciidoc markup based documentation. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/aspnetcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the aspnetcore Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | C# | |
| generator default templating engine | mustache | |
| helpTxt | Generates an ASP.NET Core Web API server. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/avro-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the avro-schema Generator
| generator stability | BETA | |
| generator type | SCHEMA | |
| generator language | Java | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Avro model (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the bash Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Bash | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Bash client script based on cURL. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the c Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | C | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C (libcurl) client library (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/clojure.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the clojure Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Clojure | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Clojure client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-pistache-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-pistache-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C++ API server (based on Pistache) | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-qt-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-qt-client Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Qt C++ client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-qt-qhttpengine-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-qt-qhttpengine-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Qt C++ Server using the QHTTPEngine HTTP Library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-restbed-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-restbed-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C++ API Server with Restbed (https://github.com/Corvusoft/restbed). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-restsdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-restsdk Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C++ API client with C++ REST SDK (https://github.com/Microsoft/cpprestsdk). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-tiny.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-tiny Generator
| generator stability | BETA | |
| generator type | CLIENT | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C++ Arduino REST API client. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-tizen.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-tizen Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Samsung Tizen C++ client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cpp-ue4.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the cpp-ue4 Generator
| generator stability | BETA | |
| generator type | CLIENT | |
| generator language | C++ | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Unreal Engine 4 C++ Module (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/crystal.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the crystal Generator
| generator stability | BETA | |
| generator type | CLIENT | |
| generator language | Crystal | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Crystal client library (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/csharp-dotnet2.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the csharp-dotnet2 Generator
| generator stability | DEPRECATED | |
| generator type | CLIENT | |
| generator language | C# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C# .Net 2.0 client library (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/csharp-nancyfx.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the csharp-nancyfx Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | C# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C# NancyFX Web API server. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/csharp-netcore-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the csharp-netcore-functions Generator
| generator stability | BETA | |
| generator type | SERVER | |
| generator language | C# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a csharp server. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/csharp-netcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the csharp-netcore Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | C# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a C# client library (.NET Standard, .NET Core). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the csharp Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | C# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a CSharp client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/cwiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ title: Documentation for the cwiki Generator
| generator name | cwiki | pass this to the generate command after -g |
| generator stability | STABLE | |
| generator type | DOCUMENTATION | |
| generator default templating engine | mustache | |
| helpTxt | Generates confluence wiki markup. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/dart-dio-next.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the dart-dio-next Generator
| generator stability | EXPERIMENTAL | |
| generator type | CLIENT | |
| generator language | Dart | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Dart Dio client library with null-safety. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/dart-dio.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the dart-dio Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Dart | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Dart Dio client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/dart-jaguar.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the dart-jaguar Generator
| generator stability | DEPRECATED | |
| generator type | CLIENT | |
| generator language | Dart | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Dart Jaguar client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/dart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the dart Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Dart | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Dart 2.x client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/dynamic-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ title: Documentation for the dynamic-html Generator
| generator name | dynamic-html | pass this to the generate command after -g |
| generator stability | STABLE | |
| generator type | DOCUMENTATION | |
| generator default templating engine | mustache | |
| helpTxt | Generates a dynamic HTML site. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/eiffel.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the eiffel Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Eiffel | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Eiffel client library (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/elixir.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the elixir Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Elixir | |
| generator default templating engine | mustache | |
| helpTxt | Generates an elixir client library (alpha). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/elm.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the elm Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Elm | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Elm client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/erlang-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the erlang-client Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Erlang | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Erlang client library (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/erlang-proper.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the erlang-proper Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Erlang | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Erlang library with PropEr generators (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/erlang-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the erlang-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | Erlang | |
| generator default templating engine | mustache | |
| helpTxt | Generates an Erlang server library (beta) using OpenAPI Generator (https://openapi-generator.tech). By default, it will also generate service classes, which can be disabled with the `-Dnoservice` environment variable. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/flash-deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the flash-deprecated Generator
| generator stability | DEPRECATED | |
| generator type | CLIENT | |
| generator language | Flash | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Flash (ActionScript) client library (beta). IMPORTANT: this generator has been deprecated in v5.x | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/fsharp-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the fsharp-functions Generator
| generator stability | BETA | |
| generator type | SERVER | |
| generator language | F# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a fsharp-functions server (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/fsharp-giraffe-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the fsharp-giraffe-server Generator
| generator stability | BETA | |
| generator type | SERVER | |
| generator language | F# | |
| generator default templating engine | mustache | |
| helpTxt | Generates a F# Giraffe server (beta). | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/go-deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the go-deprecated Generator
| generator stability | DEPRECATED | |
| generator type | CLIENT | |
| generator language | Go | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Go client library (beta). NOTE: this generator has been deprecated. Please use `go` client generator instead. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/go-echo-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the go-echo-server Generator
| generator stability | BETA | |
| generator type | SERVER | |
| generator language | Go | |
| generator default templating engine | mustache | |
| helpTxt | Generates a go-echo server. (Beta) | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/go-gin-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the go-gin-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | Go | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Go server library with the gin framework using OpenAPI-Generator.By default, it will also generate service classes. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/go-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the go-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | Go | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Go server library using OpenAPI-Generator. By default, it will also generate service classes -- which you can disable with the `-Dnoservice` environment variable. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the go Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Go | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Go client library. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/graphql-nodejs-express-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the graphql-nodejs-express-server Generator
| generator stability | STABLE | |
| generator type | SERVER | |
| generator language | Javascript | |
| generator default templating engine | mustache | |
| helpTxt | Generates a GraphQL Node.js Express server (beta) including it's types, queries, mutations, (resolvers) | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/graphql-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the graphql-schema Generator
| generator stability | STABLE | |
| generator type | SCHEMA | |
| generator language | GraphQL | |
| generator default templating engine | mustache | |
| helpTxt | Generates GraphQL schema files (beta) | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/groovy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the groovy Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Groovy | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Groovy API client. | |

## CONFIG OPTIONS
Expand Down
1 change: 1 addition & 0 deletions docs/generators/haskell-http-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Documentation for the haskell-http-client Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Haskell | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Haskell http-client library. | |

## CONFIG OPTIONS
Expand Down
Loading

0 comments on commit 78f4748

Please sign in to comment.