aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/{{base}}.cpp.mustache
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-16 18:43:23 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-16 18:43:23 +0900
commit1dd130831d406b526df274a9f9f9fb4ffd5a0d58 (patch)
tree543225396b563685fd5391c4f90a2d6a2ddf84ed /lib/csapi/{{base}}.cpp.mustache
parent0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8 (diff)
downloadlibquotient-1dd130831d406b526df274a9f9f9fb4ffd5a0d58.tar.gz
libquotient-1dd130831d406b526df274a9f9f9fb4ffd5a0d58.zip
csapi: Use {{>cjoin}} instead of {{>join,}}; fix a typo breaking update-api
Diffstat (limited to 'lib/csapi/{{base}}.cpp.mustache')
-rw-r--r--lib/csapi/{{base}}.cpp.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/{{base}}.cpp.mustache b/lib/csapi/{{base}}.cpp.mustache
index 4526bc79..8b5acd65 100644
--- a/lib/csapi/{{base}}.cpp.mustache
+++ b/lib/csapi/{{base}}.cpp.mustache
@@ -89,7 +89,7 @@ QUrl {{camelCaseOperationId}}Job::makeRequestUrl(QUrl baseUrl{{#allParams?}}, {{
}}{{^inlineBody}} QJsonObject _data;{{#bodyParams}}
addParam<{{^required?}}IfNotEmpty{{/required?}}>(_data, "{{baseName}}", {{paramName}});{{/bodyParams}}
setRequestData(_data);{{/inlineBody}}
-{{/bodyParams?}}{{#producesNonJson?}} setExpectedContentTypes({ {{#produces}}"{{_}}"{{#@join,}}{{/produces}} });
+{{/bodyParams?}}{{#producesNonJson?}} setExpectedContentTypes({ {{#produces}}"{{_}}"{{>cjoin}}{{/produces}} });
{{/producesNonJson?}}}{{!<- mind the actual brace}}
{{# responses}}{{#normalResponse?}}{{#allProperties?}}
{{camelCaseOperationId}}Job::~{{camelCaseOperationId}}Job() = default;