swagger-codegen
swagger-codegen copied to clipboard
[JAVA] Bug swagger don't encode Germany character in query params
Description
The query parameter contain Germany character (more specific, the character ß) is not encoded when we send the request
Swagger-codegen version
3.0.20
Command line used for generation
I am using io.swagger.codegen.v3:swagger-codegen-maven-plugin
Related issues/PRs
https://github.com/swagger-api/swagger-codegen/pull/8880 https://github.com/swagger-api/swagger-codegen/pull/9387
Suggest a fix/enhancement
I checked the method ApiClient#invokeAPI that we currently don't use the encode feature of UriComponentsBuilder or RestTemplate but use ti from method toUri(). At my glance there, the method is just encode the character under ISO control. And it looks like Germany character is not a part of it
Hello @kingtran2112
I think this will fix your issue.
https://github.com/swagger-api/swagger-codegen/pull/11098
Hi, thanks about that. I currently workaround that issue by using another lib for swagger. Will take a look when the PR is merged
Hi, we have the same issue. Why is the fix still not active?
Still not fixed after more than 3 years? Is this project deprecated and not maintained anymore?