diff --git a/src/main/resources/python/api.mustache b/src/main/resources/python/api.mustache index 29203d01b83..5db17906c63 100644 --- a/src/main/resources/python/api.mustache +++ b/src/main/resources/python/api.mustache @@ -71,8 +71,9 @@ class {{classname}}(object): {{#pathParams}} if ('{{paramName}}' in params): + replacement = str(self.apiClient.toPathValue(params['{{paramName}}'])) resourcePath = resourcePath.replace('{' + '{{baseName}}' + '}', - self.apiClient.toPathValue(params['{{paramName}}'])) + replacement) {{/pathParams}} postData = (params['body'] if 'body' in params else None)