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

[BUG] [Helidon] JsonNullable issue #15422

Closed
aserkes opened this issue May 5, 2023 · 0 comments · Fixed by #15423
Closed

[BUG] [Helidon] JsonNullable issue #15422

aserkes opened this issue May 5, 2023 · 0 comments · Fixed by #15423

Comments

@aserkes
Copy link
Contributor

aserkes commented May 5, 2023

Description
  • Import org.openapitools.jackson.nullable.JsonNullable and related maven dependency are added in server generators even if jsonb is used as a serialization library.
  • Duplicate imports of this class are found in client generators when jackson is used.
openapi-generator version

Openapi-generator: 6.5.0
Helidon version: 3.0.1

OpenAPI declaration file content or url

Error occurs with any OpenAPI declaration file.

Generation Details

Client generator issue :

java -jar  openapi-generator-cli.jar \
generate \
-g java-helidon-client \
--library se \
-i petstore.yaml \
-p groupId=me.mytest-helidon \
-p artifactId=mytest-helidon-se-client \
-p artifactVersion=1.0.0-SNAPSHOT \
-p dateLibrary=java8 \
-p serializationLibrary=jackson
mvn clean package

Server generator issue :

java -jar  openapi-generator-cli.jar \
generate \
-g java-helidon-server \
--library se \
-i petstore.yaml \
-p groupId=me.mytest-helidon \
-p artifactId=mytest-helidon-se-client \
-p artifactVersion=1.0.0-SNAPSHOT \
-p dateLibrary=java8 \
-p serializationLibrary=jsonb
mvn clean package
Related issues/PRs

helidon-io/helidon#6660

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

Successfully merging a pull request may close this issue.

1 participant