forked from loafle/openapi-generator-original
In the convenience class defined for generating a Map of query parameters, the parameter name was mistakenly being set to the Java variable name, not the actual parameter name. These are often the same, but can be different in the case of multi-word parameters, such as in the sample API's `enum_query_string` vs `enumQueryString`.
This commit is contained in:
committed by
wing328
parent
ffbb96e98c
commit
65b6660c55
@@ -80,7 +80,7 @@ public interface {{classname}} extends ApiClient.Api {
|
||||
public static class {{operationIdCamelCase}}QueryParams extends HashMap<String, Object> {
|
||||
{{#queryParams}}
|
||||
public {{operationIdCamelCase}}QueryParams {{paramName}}(final {{{dataType}}} value) {
|
||||
put("{{paramName}}", value);
|
||||
put("{{baseName}}", value);
|
||||
return this;
|
||||
}
|
||||
{{/queryParams}}
|
||||
|
||||
Reference in New Issue
Block a user