OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
An import import org.openapitools.jackson.nullable.JsonNullable; is being added to DTOs despite they're never used.
It's solvable by adding <openApiNullable>false</openApiNullable> config property but I believe the import shouldn't be there if it's unused.
Bug Report Checklist
Description
An import
import org.openapitools.jackson.nullable.JsonNullable;
is being added to DTOs despite they're never used. It's solvable by adding<openApiNullable>false</openApiNullable>
config property but I believe the import shouldn't be there if it's unused.openapi-generator version
7.0.1. Might be a regression of #2901
OpenAPI declaration file content or url
https://gist.github.com/Haarolean/8a9b07f74544c7e45d553ff33798ed8c (swagger petstore)
Generation Details
maven,
Steps to reproduce
Related issues/PRs
2901
Suggest a fix