-
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
Javascript client codegen useES6 and templates #5845
Comments
Your usage of Can you share a bit more on what you want to customize? You may want to also try without the |
-t ./generator/templates/javascript-es6 is the path of my own template. When I put "us6=true" in command, generics template from codegen are used. My templates work with isomorphicFetch and are completely rewrote. |
@kevin-lot I did fix some minor issues with the Javascript generator and would suggest you to pull the latest master to see if you're still experiencing the same issue. |
@wing328 With the latest branch 2.30, pulled at june 28, 2017 Now, with or without the additionnal parameter "useES6", generic template from codegen are used. The "-t" parameter is completely ignored. |
I'll look into the issue with the If you run |
Any news here? We had to update from v2.2.2 to v2.2.3 because of #4932. But now or CI is broken because the code generator for JavaScript seems to ignore all templates. Thus, the default package.json is used and new packages cannot be published anymore. |
@kevin-lot @lkettenb I've filed #6253 to fix it. Will merge it into master after the CI tests pass. |
* fix #5845 (template dir) * fix js petstore test case
The fix has been merged into master. Please pull the latest master to give it a try. |
@wing328 Thank you very much! It seems to work again! |
@lkettenb np. Sorry for taking this long as I lost track of this issue. If you've further feedback on the JS API client, please let us know. |
Description
Javascript client codegen doesn't use my own templates when useES6 additionnal properties is setted.
Swagger-codegen version
2.3.0
pull at june 14, 2017
Command line used for generation
java \
-DdebugModels \
-DdebugOperations \
-jar ./generator/swagger-codegen-cli.jar \
generate \
-i ../swagger.json \
-l javascript \
-o ./ \
--additional-properties useInheritance=true,useES6=true \
-t ./generator/templates/javascript-es6 \
> ./.mustache.log
Steps to reproduce
Use templates with useES6 additional properties.
The text was updated successfully, but these errors were encountered: