-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom template in openapi 3 doesnt work always throws java.io.FileNotFoundException: /C:\user\template/C:\user\template\model.mustache #8132
Comments
@HugoMario is there any latest jar published resolves this issue |
C:\user\template/C:\user\template\model.mustache |
@robert2411 The pom.xml has the below |
@robert2411 Please take a look ,review the Fix issue8132 #8140 to solve the same |
Hello @anand188, sorry for this really late response, i'm wondering if you got this issue trying with latest changes on |
@HugoMario 3.0.0-SNAPSHOT do you refer to pom.xml ? Above only i am using which doesn't work |
@HugoMario 3.0.0-SNAPSHOT also you specify it as branch i only see 3.0.0 branch . |
hey @anand188, sorry about it, yea it was my bad. The branch is |
@HugoMario i tested the same now it was not working i am working in windows . |
@anand188 can you please share the command you're using? |
@HugoMario the below is the command i used |
ok, FYI checking in a windows in a bit |
I am also having issues with the template option in Windows. If I use forward slashes in the path, I get File Not Found and duplicated part of the path (like above). If I use backslashes, like:
I get:
|
Now it doesn't work on Linux too. But the reason is different. |
Exception in thread "Thread-1" java.lang.RuntimeException: Could not generate model 'AllLinks'
at io.swagger.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:407)
at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:722)
at io.swagger.codegen.cmd.Generate.run(Generate.java:312)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: /C:\user\template/C:\user\template\model.mustache
at com.github.jknack.handlebars.io.URLTemplateLoader.sourceAt(URLTemplateLoader.java:70)
at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:357)
at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:343)
at io.swagger.codegen.DefaultGenerator.getHandlebars(DefaultGenerator.java:1017)
at io.swagger.codegen.DefaultGenerator.processTemplateToFile(DefaultGenerator.java:738)
at io.swagger.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:394)
The text was updated successfully, but these errors were encountered: