forked from loafle/openapi-generator-original
cast to string for query param replacements in case ids are submitted as int, long, etc
This commit is contained in:
parent
3550309544
commit
de0dffe83f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user