[BUG] new.sh does not specify gen-type in templateDir path
Created by: AndersSpringborg
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When generating a new template, the standard config do not specify the correct templateDir
Let's say you created a new client with
./new.sh -n test -c
The config created have this templateDir specified in the standard config
generatorName: test
outputDir: samples/client/petstore/test
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/test
additionalProperties:
hideGenerationTimestamp: "true"
The template should have been:
templateDir: modules/openapi-generator/src/main/resources/test-client
As the template as named test-client
in resources
openapi-generator version
5.1.1 (source-master)
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
#9321