Skip to content
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

unable to generate jax-rs client api #39

Open
nasirosmani opened this issue Oct 11, 2022 · 0 comments
Open

unable to generate jax-rs client api #39

nasirosmani opened this issue Oct 11, 2022 · 0 comments

Comments

@nasirosmani
Copy link

I am unable to successfully generate the jax-rs client from the @openapi-generator-plus/java-jaxrs-client-generator 2.1.4
I am using PetStore yaml file as reference
1)
config.yml
inputPath: api.yml
outputPath: dist
generator: "@openapi-generator-plus/java-jaxrs-client-generator"
2)
api.yml (from https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore.yaml)

npm run generate results in following error
it seems there is issue with generation of apiImpl.hbs which is not generate
{{>hooks/injectApi group=. name='api'}} which is unable to generate since ApiSpec Implementation is not generated

Failed to generate templates: Error: Failed to generate template "apiImpl": Unknown helper or property "class" is not defined @ 9:38-47
at emit (D:\Temp\openapigplus\node_modules@openapi-generator-plus\handlebars-templates\dist\index.js:112:30)
at Object.myContext.additionalExportTemplates (D:\Temp\openapigplus\node_modules@openapi-generator-plus\java-jaxrs-client-generator\dist\index.js:73:51)
at async Object.exportTemplates (D:\Temp\openapigplus\node_modules@openapi-generator-plus\java-jaxrs-generator-common\dist\index.js:550:17)
at async generate (D:\Temp\openapigplus\node_modules\openapi-generator-plus\dist\generate.js:36:9)
at async generateCommand (D:\Temp\openapigplus\node_modules\openapi-generator-plus\dist\generate.js:144:18)
Caused by Error: Unknown helper or property "class" is not defined @ 9:38-47
at Object. (D:\Temp\openapigplus\node_modules@openapi-generator-plus\handlebars-templates\dist\index.js:171:19)
at Object.wrapper (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\internal\wrapHelper.js:15:19)
at Object.eval [as main] (eval at createFunctionContext (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:262:23), :15:192)
at main (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\runtime.js:208:32)
at ret (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\runtime.js:212:12)
at ret (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:519:21)
at Object.invokePartial (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\runtime.js:334:12)
at Object.invokePartialWrapper [as invokePartial] (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\runtime.js:84:39)
at Object.eval [as main] (eval at createFunctionContext (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:262:23), :10:31)
at main (D:\Temp\openapigplus\node_modules\handlebars\dist\cjs\handlebars\runtime.js:208:32)

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

No branches or pull requests

1 participant