OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
22.02k stars 6.61k forks source link

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

Open jacksSpring opened 9 months ago

jacksSpring commented 9 months ago

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
abhinavkabra commented 6 months ago

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

dominik-kovacs commented 4 months ago

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