mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 00:13:50 +00:00
Escape query params before invoking api (#5023)
* Escape query params before invoking api * Update petstore file * Update remaining petstore examples
This commit is contained in:
parent
ee984c38a5
commit
2722c602ac
@ -694,7 +694,7 @@ public class ApiClient {
|
||||
if (queryParams != null) {
|
||||
for (Pair queryParam : queryParams) {
|
||||
if (queryParam.getValue() != null) {
|
||||
target = target.queryParam(queryParam.getName(), queryParam.getValue());
|
||||
target = target.queryParam(queryParam.getName(), escapeString(queryParam.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -678,7 +678,7 @@ public class ApiClient {
|
||||
if (queryParams != null) {
|
||||
for (Pair queryParam : queryParams) {
|
||||
if (queryParam.getValue() != null) {
|
||||
target = target.queryParam(queryParam.getName(), queryParam.getValue());
|
||||
target = target.queryParam(queryParam.getName(), escapeString(queryParam.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -678,7 +678,7 @@ public class ApiClient {
|
||||
if (queryParams != null) {
|
||||
for (Pair queryParam : queryParams) {
|
||||
if (queryParam.getValue() != null) {
|
||||
target = target.queryParam(queryParam.getName(), queryParam.getValue());
|
||||
target = target.queryParam(queryParam.getName(), escapeString(queryParam.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -678,7 +678,7 @@ public class ApiClient {
|
||||
if (queryParams != null) {
|
||||
for (Pair queryParam : queryParams) {
|
||||
if (queryParam.getValue() != null) {
|
||||
target = target.queryParam(queryParam.getName(), queryParam.getValue());
|
||||
target = target.queryParam(queryParam.getName(), escapeString(queryParam.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user