-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[BUG][Java][RestTemplate][WebClient] Java client generator doesn't support deepObject in query #14691
Comments
can you try the |
Hello With
With |
I have expanded this issue with more bug cases in this other issue: |
The resttemplate library should be fixed in the PR at #14825 |
Copy of #4808 (comment) Doesn't work with Spring Weblient generation in openapi-generator-maven-plugin:6.40. Generates same error as #4808 (comment) ie In Swagger UI it creates the expected
|
yep, same problem ts-axios :={ |
Any word on this? |
This bug ticket explicitly mentions the Java RestTemplate in the title. I believe this was fixed in #14825 released in 7.0.0 |
The bug still exist in 7.0.1 for webclient. Any ideas for a workaround? |
Still doesn't work with It's unable to parse empty body response eg Error is:
I really don't care if it's RestTemplate or Webclient as long as it works. I haven't seen any OneApi-generated Java client that works with Spring Paging (and I've tried them all). |
This ticket is talking about sending a query string in the request. Looks like your problem is in parsing a response, so a different issue. |
Prob time @GregDThomas to open an epic and just get 1 OneAPI Java client working with Spring Data Paging. This ticket is still open and related (long-running) #4808 re-opened. I'm not sure you get any points if just the request works... |
The title of this ticket makes it clear that it's about the deepObject in the /query/ for both RestTemplate and WebClient. I believe the RestTemplate side is fixed, just not WebClient (TBH I think this issue should be closed as a duplicate of #14790) If you raise a different ticket describing your different issue of how RestTemplate is failing to to parse the response, you're more likely to get it resolved. But by far the best way to get it resolved is to raise a ticket and then submit a PR to fix it. |
@GregDThomas RestTemplate problem continues in version 7.3.0 |
Closed in favor of #14790 |
Bug Report Checklist
Description
Java RestTemplate and Java Webclient generator don't support deepObject in query
openapi-generator version
5.4.0, 6.3.0
OpenAPI declaration file content or url
Generation Details
java -jar openapi-generator-cli.jar generate -g java -i openapi-rest.yml -o openapi --library resttemplate
java -jar openapi-generator-cli.jar generate -g java -i openapi-rest.yml -o openapi --library webclient
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: