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)
3)
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)
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)
3) 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)