cast to string for query param replacements in case ids are submitted as int, long, etc

This commit is contained in:
Russell Horton 2012-08-28 15:18:21 -07:00
parent 3550309544
commit de0dffe83f

View File

@ -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)