swagger-api / swagger-api/swagger-codegen
Subfolder located templates are not generated
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I'm using my templates which are located inside ./templates that looks like:
./templates
└───auth
│ OAuth.mustache
│
└───living
ILivingOAuthClient.mustache
LivingAccessTokenResponse.mustache
LivingAuthzCodeResponse.mustache
LivingAuthzCodeValidator.mustache
LivingOAuthClient.mustache
OAuthzAuthzCodeResponse.mustache
Unfortunatlly, subfolder mustache templates are not generated. Only OAuth.mustache -> OAuth.java. Any ideas?
Swagger-codegen version
2.3.0
Command line used for generation
java -jar swagger-codegen-cli.jar generate -i http://guest1:8080/authz/cmng/swagger.json -l java -c conf
ig.json -t .\templates\
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with Swagger Codegen 2.3.0 using the java -jar swagger-codegen-cli.jar generate command, conf ig.json, and ./templates/, including auth/living and its .mustache files. Trace template discovery from this command and verify that generation produces Java files for the nested templates as well as OAuth.java.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100