OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
At the moment each generated feign client has the following configuration:
Description
@Configuration
@EnableConfigurationProperties
public class ClientConfiguration {
This is a grave problem as it only allows for one feign client per spring application: if 2 or more are present the application will crash because it will find 2 identical bean in 2 different packages ("ClientConfiguration" bean, indeed).
openapi-generator version
Present in all versions
Suggest a fix
Simply make "className" available in the clientConfiguration.mustache (dunno why it is not present at the moment...) and alter the template by doing:
@Configuration
@EnableConfigurationProperties
public class {{classname}}ClientConfiguration {
Bug Report Checklist
At the moment each generated feign client has the following configuration:
Description
This is a grave problem as it only allows for one feign client per spring application: if 2 or more are present the application will crash because it will find 2 identical bean in 2 different packages ("ClientConfiguration" bean, indeed).
openapi-generator version
Present in all versions
Suggest a fix
Simply make "className" available in the clientConfiguration.mustache (dunno why it is not present at the moment...) and alter the template by doing: