openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG][JAVA][WebClient] Removal of @Component from ApiClient

Open jacksSpring opened this issue 2 years ago • 1 comments

I am using Java 17 and Spring Boot 3. generator : Java library : webclient

openapi-generator version 7.1.0
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

jacksSpring avatar Feb 18 '24 11:02 jacksSpring

@jacksSpring Did you find any solution for this? I am also having same issue and "generateClientAsBean" is not generating @Component in APIClient

abhinavkabra avatar May 10 '24 01:05 abhinavkabra

according to docs, generateClientAsBean works only with RestTemplate I created a new feature request to support also RestClient and WebClient https://github.com/OpenAPITools/openapi-generator/issues/19229

dominik-kovacs avatar Jul 23 '24 15:07 dominik-kovacs