Skip to content
Snippets Groups Projects
Commit e2ffe1ba authored by Sebastian Böckelmann's avatar Sebastian Böckelmann
Browse files

Fix duplicate params in paramlist generation

parent 1897b30d
No related branches found
No related tags found
No related merge requests found
......@@ -296,12 +296,13 @@ def typescript(output_dir):
code_template = code_template.replace("$METHOD_NAME", api_function.name)
for index, parameter in enumerate(api_function.parameters.values()):
replace_string = "'" + parameter.name + "'"
if parameter.old is not None:
replace_string = "'" + parameter.name + "'"
if index < len(api_function.parameters) - 1:
replace_string += ", $OLD"
code_template = code_template.replace("$OLD", replace_string)
if parameter.new is not None:
replace_string = "'" + parameter.name + "'"
if index < len(api_function.parameters) - 1:
replace_string += ", $NEW"
code_template = code_template.replace("$NEW", replace_string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment