Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

wjam/swagger-codegen-spring-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of some swagger-codegen issues

Default methods on spring-cloud interfaces

Feign will execute any default methods on an interface rather than initiating any HTTP call. This conflicts with the interface generated by the swagger-codegen-maven-plugin which always come with a default method on Java 8.

useBeanValidation ignored

useBeanValidation is set to false in the pom.xml yet the dependency is required. To demonstrate this issue, remove the validation-api dependency and run mvn clean compile.

Unnecessary dependency on spring-cloud-security and spring-security-oauth2

The generated ClientConfiguration class always contains imports for org.springframework.cloud.security and org.springframework.security.oauth2, even though they aren't used in the class. To see the issue, remove the line **/ClientConfiguration.java from the .swagger-codegen-ignore file and run mvn clean compile.

About

Demonstration of issue with swagger-codegen, spring-cloud & Java 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages