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] [JAVA] Unused Import Requires Its Own Dependency #18289

Open
palatam opened this issue Apr 4, 2024 · 0 comments
Open

[BUG] [JAVA] Unused Import Requires Its Own Dependency #18289

palatam opened this issue Apr 4, 2024 · 0 comments

Comments

@palatam
Copy link

palatam commented Apr 4, 2024

openapi-generator version

Affects all versions (tested 6.6 to latest 7.4).

Description

Using:

<generatorName>java</generatorName>
<library>apache-httpclient</library> or <library>resttemplate</library>

The generated ApiClient.class imports an unused Type import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; which is not used but requires an additional Dependency to even compile.

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

No branches or pull requests

1 participant