forked from loafle/openapi-generator-original
fixing a minor generation issue in api.mustashe to make sure that python scripts are as clean as possible for apis
This commit is contained in:
parent
983edbd85b
commit
b8f3201dba
@ -79,13 +79,15 @@ class {{classname}}(object):
|
||||
{{/pathParams}}
|
||||
|
||||
{{#formParams}}
|
||||
headerParams['Content-type'] = 'application/x-www-form-urlencoded'
|
||||
if ('{{paramName}}' in params):
|
||||
formParams['{{paramName}}'] = params['{{paramName}}']
|
||||
{{/formParams}}
|
||||
if formParams:
|
||||
headerParams['Content-type'] = 'application/x-www-form-urlencoded'
|
||||
|
||||
{{#bodyParam}}
|
||||
bodyParam = params['body']
|
||||
if ('{{paramName}}' in params):
|
||||
bodyParam = params['{{paramName}}']
|
||||
{{/bodyParam}}
|
||||
|
||||
postData = (formParams if formParams else bodyParam)
|
||||
|
Loading…
x
Reference in New Issue
Block a user