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
Using the Jira OpenAPI spec, a model class called JsonNode causes a compilation issue in the generated JSON class, because that unnecessarily imports all model classes.
Bug Report Checklist
Description
Using the Jira OpenAPI spec, a model class called
JsonNode
causes a compilation issue in the generatedJSON
class, because that unnecessarily imports all model classes.openapi-generator version
All of them.
OpenAPI declaration file content or url
https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json
Generation Details
Use Jersey 2 or 3 with Jackson.
Steps to reproduce
Just generate the models for that spec and observe the compilation error.
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/pull/20124
Suggest a fix
See PR