Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[javascript]FileNotFoundException: /javascript/model.mustache #9909

Closed
virendrasinghpawar opened this issue Dec 4, 2019 · 2 comments
Closed

Comments

@virendrasinghpawar
Copy link

swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l javascript

Exception in thread "Thread-1" java.lang.RuntimeException: Could not generate model 'ApiResponse'
at io.swagger.codegen.v3.DefaultGenerator.generateModels(DefaultGenerator.java:455)
at io.swagger.codegen.v3.DefaultGenerator.generate(DefaultGenerator.java:783)
at io.swagger.codegen.v3.cli.cmd.Generate.run(Generate.java:351)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: /javascript/model.mustache
at com.github.jknack.handlebars.io.URLTemplateLoader.sourceAt(URLTemplateLoader.java:70)
at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:438)
at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:419)
at io.swagger.codegen.v3.templates.HandlebarTemplateEngine.getHandlebars(HandlebarTemplateEngine.java:48)
at io.swagger.codegen.v3.templates.HandlebarTemplateEngine.getRendered(HandlebarTemplateEngine.java:24)
at io.swagger.codegen.v3.DefaultGenerator.processTemplateToFile(DefaultGenerator.java:799)
at io.swagger.codegen.v3.DefaultGenerator.generateModels(DefaultGenerator.java:442)
... 3 more

@mihaigabriel1992
Copy link

Happens to me as well, any suggestions?

@virendrasinghpawar virendrasinghpawar changed the title FileNotFoundException: /javascript/model.mustache [javascript]FileNotFoundException: /javascript/model.mustache Dec 5, 2019
frantuma added a commit to swagger-api/swagger-codegen-generators that referenced this issue Dec 13, 2019
frantuma added a commit to swagger-api/swagger-codegen-generators that referenced this issue Dec 13, 2019
refs swagger-api/swagger-codegen#9909 - fix javascript generator templateDir and missing template file
@frantuma
Copy link
Member

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants