Skip to content

[BUG] Description A bug occurred. When using the jsonb parameter, in the java-helidon-client #22487

@essapp

Description

@essapp

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [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:

io.helidon.http.media
helidon-http1media-jsonb

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:
helidon-http1media-jsonb
The correct version should be:
helidon-http-media-jsonb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions