mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
update python samples
This commit is contained in:
parent
5687edcf02
commit
8fb81ea554
@ -509,7 +509,7 @@ class ApiClient:
|
|||||||
if k in collection_formats:
|
if k in collection_formats:
|
||||||
collection_format = collection_formats[k]
|
collection_format = collection_formats[k]
|
||||||
if collection_format == 'multi':
|
if collection_format == 'multi':
|
||||||
new_params.extend((k, quote(value)) for value in v)
|
new_params.extend((k, value) for value in v)
|
||||||
else:
|
else:
|
||||||
if collection_format == 'ssv':
|
if collection_format == 'ssv':
|
||||||
delimiter = ' '
|
delimiter = ' '
|
||||||
|
@ -545,7 +545,7 @@ class ApiClient:
|
|||||||
if k in collection_formats:
|
if k in collection_formats:
|
||||||
collection_format = collection_formats[k]
|
collection_format = collection_formats[k]
|
||||||
if collection_format == 'multi':
|
if collection_format == 'multi':
|
||||||
new_params.extend((k, str(value)) for value in v)
|
new_params.extend((k, quote(str(value))) for value in v)
|
||||||
else:
|
else:
|
||||||
if collection_format == 'ssv':
|
if collection_format == 'ssv':
|
||||||
delimiter = ' '
|
delimiter = ' '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user