Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ][Java][Client][WebClient] Group Parameters as one parameter (useSingleRequestParameter) for Spring WebClient #19407

Closed
1 task
Nicklas2751 opened this issue Aug 21, 2024 · 0 comments · Fixed by #19827

Comments

@Nicklas2751
Copy link
Contributor

Like for java native, okhttp and jersey add the possibility to group all parameters into one (object) when useSingleRequestParameter is set true.

Describe the solution you'd like

A class containing all parameters which is generated combined with a changed method heard when the option is set should do the trick. :)

  • And, of course, don't forget to update the options documentation when done.

Describe alternatives you've considered

/

Additional context

Example Solutions:
https://github.com/OpenAPITools/openapi-generator/blob/eda4547f151a7b5a8952387fa1cb7974c0a5e5ee/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/api.mustache

https://github.com/OpenAPITools/openapi-generator/blob/eda4547f151a7b5a8952387fa1cb7974c0a5e5ee/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache

(I'll create a PR soon. This issue is mainly for me to don't forget it ^^)

wing328 pushed a commit that referenced this issue Dec 15, 2024
…Parameter to Spring WebClient (#19827)

* chore (JAVA SPRING WEBCLIENT): Remove comments used for debugging

* feat (JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient

* feat (JAVA SPRING WEBCLIENT): Generate samples and docs

* fix (JAVA SPRING WEBCLIENT): Fix missing return error & Fix JDK17 action webclient useSingleRequestParameter test path

* fix (JAVA SPRING WEBCLIENT): Fix code indention

* fix (JAVA SPRING WEBCLIENT): Fix code indention again

* fix (JAVA SPRING WEBCLIENT): Update samples

* feat (JAVA SPRING WEBCLIENT): Regenerate after pull rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant