-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Java] Codegen Bad object serialization when query parameter is Object #907
Comments
I created a PR to fix this. |
This issue will be fixed by #12369 |
issue still here with 6.2.1 release |
@moravcik94 please share a reproducer schema and which generator you are using. |
@sorin-florea
ends up with call: |
@moravcik94 |
@sorin-florea is there any workaround how to use it with resttemplate ? |
@moravcik94 The only workaround would be to not use a ref for now. You can also try to fix the issue for |
I'm working on a PR now to fix this - #14825 - the updated template works, just need to get the whitespace issues sorted nicely, but unfortunately have had to be pulled out on to other things. |
PR is ready to go - with it java-resttemplate correctly explodes query parameters. |
The bad news is, now I've got the client code working correctly, I've uncovered an issue with the spring-boot library on the server side. No idea where to begin on that one though. #14860 |
Description
When y try to send an object in a query with method get, the object is not serialized, the api call toString method
14:57:56.747 [main] DEBUG f.r.p.t.f.l.j.s.r.RestLoggerProvider - --> GET http://localhost:8000/v1/declarations/etablissements?page=class%20PageIn%20%7B%0A%20%20%20%20page%3A%200%0A%20%20%20%20size%3A%200%0A%7D&filtre=class%20FiltreRechercherEtablissementDSN%20%7B%0A%20%20%20%20siret%3A%20null%0A%20%20%20%20siren%3A%20502195977%0A%20%20%20%20annee%3A%20null%0A%20%20%20%20mois%3A%20null%0A%20%20%20%20localite%3A%20null%0A%20%20%20%20effectifCalculeDebutDePeriode%3A%20null%0A%20%20%20%20effectifCalculeFinDePeriode%3A%20null%0A%20%20%20%20denomination%3A%20null%0A%20%20%20%20codeNAF%3A%20null%0A%7D&tri=class%20TriRechercherEtablissementsDSN%20%7B%0A%20%20%20%20siret%3A%20null%0A%20%20%20%20siren%3A%20null%0A%20%20%20%20mois%3A%20null%0A%20%20%20%20localite%3A%20null%0A%20%20%20%20effectifCalculeFinDePeriode%3A%20null%0A%20%20%20%20effectifCalculeDebutDePeriode%3A%20null%0A%20%20%20%20denomination%3A%20null%0A%20%20%20%20codeNAF%3A%20null%0A%20%20%20%20annee%3A%20asc%0A%7D HTTP/1.1
openapi-generator version
3.2.1, 3.2.2 ...
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: