[Java][Resttemplate] Normalize the RestTemplate ApiClient#14845
[Java][Resttemplate] Normalize the RestTemplate ApiClient#14845wing328 merged 14 commits intoOpenAPITools:masterfrom jorgerod:feature/GH-14832-resttemplate-normalize
Conversation
Update to 4.2.3
|
@jorgerod can you please merge the latest master into your branch as that should fix the CI failure? |
Done |
|
Why were the |
It has been removed because if there were several different clients you had to play with the @componentscan to avoid collisions. You must create a bean for the ApiClient. @Bean
public ApiClient apiClient() {
return new ApiClient();
} |
|
I can see why you did this, but how is this in a minor update. This is clearly a breaking change. At least it breaks our build. And you don't have to create a Bean for the ApiClient, since all Api implementations have lost their @Bean
public DefaultApi defaultApi(RestTemplate restTemplate) {
return new DefaultApi(new ApiClient(restTemplate));
} |
Closes: #14832
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(6.3.0) (minor release - breaking changes with fallbacks),7.0.x(breaking changes without fallbacks)@bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10)