Skip to content

Commit c3dbb42

Browse files
committed
[python][client] Fix delimiter collision (OpenAPITools#5981) update samples
1 parent 4ccd3fc commit c3dbb42

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

samples/openapi3/client/petstore/python/docs/Animal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**class_name** | **str** | |
7-
**color** | **str** | | [optional] [default to 'red']
7+
**color** | **str** | | [optional] [default to "red"]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

samples/openapi3/client/petstore/python/docs/Category.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **int** | | [optional]
7-
**name** | **str** | | [default to 'default-name']
7+
**name** | **str** | | [default to "default-name"]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

samples/openapi3/client/petstore/python/docs/FakeApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -756,13 +756,13 @@ with petstore_api.ApiClient() as api_client:
756756
# Create an instance of the API class
757757
api_instance = petstore_api.FakeApi(api_client)
758758
enum_header_string_array = ['enum_header_string_array_example'] # list[str] | Header parameter enum test (string array) (optional)
759-
enum_header_string = '-efg' # str | Header parameter enum test (string) (optional) (default to '-efg')
759+
enum_header_string = "-efg" # str | Header parameter enum test (string) (optional) (default to "-efg")
760760
enum_query_string_array = ['enum_query_string_array_example'] # list[str] | Query parameter enum test (string array) (optional)
761-
enum_query_string = '-efg' # str | Query parameter enum test (string) (optional) (default to '-efg')
761+
enum_query_string = "-efg" # str | Query parameter enum test (string) (optional) (default to "-efg")
762762
enum_query_integer = 56 # int | Query parameter enum test (double) (optional)
763763
enum_query_double = 3.4 # float | Query parameter enum test (double) (optional)
764-
enum_form_string_array = '$' # list[str] | Form parameter enum test (string array) (optional) (default to '$')
765-
enum_form_string = '-efg' # str | Form parameter enum test (string) (optional) (default to '-efg')
764+
enum_form_string_array = "$" # list[str] | Form parameter enum test (string array) (optional) (default to "$")
765+
enum_form_string = "-efg" # str | Form parameter enum test (string) (optional) (default to "-efg")
766766

767767
try:
768768
# To test enum parameters
@@ -776,13 +776,13 @@ enum_form_string = '-efg' # str | Form parameter enum test (string) (optional) (
776776
Name | Type | Description | Notes
777777
------------- | ------------- | ------------- | -------------
778778
**enum_header_string_array** | [**list[str]**](str.md)| Header parameter enum test (string array) | [optional]
779-
**enum_header_string** | **str**| Header parameter enum test (string) | [optional] [default to '-efg']
779+
**enum_header_string** | **str**| Header parameter enum test (string) | [optional] [default to "-efg"]
780780
**enum_query_string_array** | [**list[str]**](str.md)| Query parameter enum test (string array) | [optional]
781-
**enum_query_string** | **str**| Query parameter enum test (string) | [optional] [default to '-efg']
781+
**enum_query_string** | **str**| Query parameter enum test (string) | [optional] [default to "-efg"]
782782
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
783783
**enum_query_double** | **float**| Query parameter enum test (double) | [optional]
784-
**enum_form_string_array** | [**list[str]**](str.md)| Form parameter enum test (string array) | [optional] [default to '$']
785-
**enum_form_string** | **str**| Form parameter enum test (string) | [optional] [default to '-efg']
784+
**enum_form_string_array** | [**list[str]**](str.md)| Form parameter enum test (string array) | [optional] [default to "$"]
785+
**enum_form_string** | **str**| Form parameter enum test (string) | [optional] [default to "-efg"]
786786

787787
### Return type
788788

samples/openapi3/client/petstore/python/docs/Foo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**bar** | **str** | | [optional] [default to 'bar']
6+
**bar** | **str** | | [optional] [default to "bar"]
77

88
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
99

samples/openapi3/client/petstore/python/docs/InlineObject2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**enum_form_string_array** | **list[str]** | Form parameter enum test (string array) | [optional]
7-
**enum_form_string** | **str** | Form parameter enum test (string) | [optional] [default to '-efg']
7+
**enum_form_string** | **str** | Form parameter enum test (string) | [optional] [default to Enum_form_stringEnum._EFG]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

samples/openapi3/client/petstore/python/petstore_api/models/animal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Animal(object):
4747
'Cat': 'Cat'
4848
}
4949

50-
def __init__(self, class_name=None, color='red', local_vars_configuration=None): # noqa: E501
50+
def __init__(self, class_name=None, color="red", local_vars_configuration=None): # noqa: E501
5151
"""Animal - a model defined in OpenAPI""" # noqa: E501
5252
if local_vars_configuration is None:
5353
local_vars_configuration = Configuration()

samples/openapi3/client/petstore/python/petstore_api/models/category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Category(object):
4242
'name': 'name'
4343
}
4444

45-
def __init__(self, id=None, name='default-name', local_vars_configuration=None): # noqa: E501
45+
def __init__(self, id=None, name="default-name", local_vars_configuration=None): # noqa: E501
4646
"""Category - a model defined in OpenAPI""" # noqa: E501
4747
if local_vars_configuration is None:
4848
local_vars_configuration = Configuration()

samples/openapi3/client/petstore/python/petstore_api/models/foo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Foo(object):
4040
'bar': 'bar'
4141
}
4242

43-
def __init__(self, bar='bar', local_vars_configuration=None): # noqa: E501
43+
def __init__(self, bar="bar", local_vars_configuration=None): # noqa: E501
4444
"""Foo - a model defined in OpenAPI""" # noqa: E501
4545
if local_vars_configuration is None:
4646
local_vars_configuration = Configuration()

samples/openapi3/client/petstore/python/petstore_api/models/inline_object2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class InlineObject2(object):
4242
'enum_form_string': 'enum_form_string'
4343
}
4444

45-
def __init__(self, enum_form_string_array=None, enum_form_string='-efg', local_vars_configuration=None): # noqa: E501
45+
def __init__(self, enum_form_string_array=None, enum_form_string=Enum_form_stringEnum._EFG, local_vars_configuration=None): # noqa: E501
4646
"""InlineObject2 - a model defined in OpenAPI""" # noqa: E501
4747
if local_vars_configuration is None:
4848
local_vars_configuration = Configuration()

0 commit comments

Comments
 (0)