mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 06:37:10 +00:00
Use percent encoding for path parameters (#2649)
This commit is contained in:
@@ -31,7 +31,7 @@ void
|
||||
{{#pathParams}}
|
||||
QString {{paramName}}PathParam("{");
|
||||
{{paramName}}PathParam.append("{{baseName}}").append("}");
|
||||
fullPath.replace({{paramName}}PathParam, ::{{cppNamespace}}::toStringValue({{paramName}}));
|
||||
fullPath.replace({{paramName}}PathParam, QUrl::toPercentEncoding(::{{cppNamespace}}::toStringValue({{paramName}})));
|
||||
{{/pathParams}}
|
||||
{{#queryParams}}{{^collectionFormat}}
|
||||
if (fullPath.indexOf("?") > 0)
|
||||
|
||||
Reference in New Issue
Block a user