Open wjam opened 6 years ago
The generated ClientConfiguration class always imports from spring-cloud-security and spring-security-oauth2 even if these imports are unused.
ClientConfiguration
spring-cloud-security
spring-security-oauth2
2.2.3
Example can be found at https://github.com/wjam/swagger-codegen-spring-cloud
Maven library used. Configuration is in the GitHub repo mentioned above
Remove the line **/ClientConfiguration.java from the .swagger-codegen-ignore file and run mvn clean compile
**/ClientConfiguration.java
.swagger-codegen-ignore
mvn clean compile
Only include those imports when they are actually required.
same problem
Might be a little late for the party, but I created a pull request for this issue.
Description
The generated
ClientConfiguration
class always imports fromspring-cloud-security
andspring-security-oauth2
even if these imports are unused.Swagger-codegen version
2.2.3
Swagger declaration file content or url
Example can be found at https://github.com/wjam/swagger-codegen-spring-cloud
Command line used for generation
Maven library used. Configuration is in the GitHub repo mentioned above
Steps to reproduce
Remove the line
**/ClientConfiguration.java
from the.swagger-codegen-ignore
file and runmvn clean compile
Suggest a fix/enhancement
Only include those imports when they are actually required.