[BUG] Description A bug occurred. When using the jsonb parameter, in the java-helidon-client
Bug Report Checklist
- [x] Have you provided a full/minimal spec to reproduce the issue?
- [x] Have you validated the input using an OpenAPI validator?
- [x] Have you tested with the latest master to confirm the issue still exists?
- [x] Have you searched for related issues/PRs?
- [x] What's the actual output vs expected output?
- [x] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When using the following command, the generated client encounters an error. When referencing the jsonb package in the pom.xml file,
Command:
java -jar ./openapi-generator-cli-7.17.0.jar
generate
-i ./petstore.yaml
-g java-helidon-client
--library se
-o ./client
--enable-post-process-file
-p groupId=pub.ess.opi.esb
-p artifactId=ess-opi-esb-client
-p artifactVersion=1.0.0
-p apiPackage=pub.ess.opi.esb.client.api
-p modelPackage=pub.ess.opi.esb.client.model
-p invokerPackage=pub.ess.opi.esb.client
Bug:
openapi-generator version
7.17.0
OpenAPI declaration file content or url
https://github.com/helidon-io/helidon/blob/main/openapi/tests/gh-5792/src/test/resources/petstore.yaml
Generation Details
Template spelling error: <artifactId>helidon-http1media-jsonb</artifactId> The correct version should be: <artifactId>helidon-http-media-jsonb</artifactId>
Steps to reproduce
1.Download openapi-generator-cli-7.17.0.jar package;
2.Download petstore.yaml at the following website:
https://github.com/helidon-io/helidon/blob/main/openapi/tests/gh-5792/src/test/resources/petstore.yaml
3.Run the following command in bash:
java -jar ./openapi-generator-cli-7.17.0.jar
generate
-i ./petstore.yaml
-g java-helidon-client
--library se
-o ./client
--enable-post-process-file
-p groupId=pub.ess.opi.esb
-p artifactId=ess-opi-esb-client
-p artifactVersion=1.0.0
-p apiPackage=pub.ess.opi.esb.client.api
-p modelPackage=pub.ess.opi.esb.client.model
-p invokerPackage=pub.ess.opi.esb.client
Related issues/PRs
Yes
Suggest a fix
There is a spelling mistake on line 67 of the following document. https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/pom.mustache