Open lfischer opened 3 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
I am facing the same issue after upgrading from 4.2.3.
I explicitly disabled useSpringfox
in my configuration but no luck:
{
// ...
"useSpringfox": false,
"reactive": false
}
This issue described earlier in https://github.com/OpenAPITools/openapi-generator/issues/8360
Seems to be fixed in 5.3.0
Bug Report Checklist
Description
Generated API interfaces contain the following unused imports, which introduce unnecessary dependencies:
import org.springframework.data.domain.Pageable;
import springfox.documentation.annotations.ApiIgnore;
openapi-generator version
5.0.1
OpenAPI declaration file content or url
https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
Generation Details
Steps to reproduce
file "springboot-options.json"
command line
Example: imports within generated file
UserApi
Related issues/PRs
Suggest a fix
Remove imports of
springfox.documentation.annotations.ApiIgnore
anddata.domain.Pageable
within the api interfaces, as they are not used and not needed.