swagger-api / swagger-api/swagger-codegen

Subfolder located templates are not generated

Open
#6,270 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.