Skip to content

Commit 8167527

Browse files
committed
add samples change
1 parent 74b4620 commit 8167527

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

samples/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def test_classname(
121121
_check_return_type (bool): specifies if type checking
122122
should be done one the data received from the server.
123123
Default is True.
124+
_content_type (str/None): force body content-type.
125+
Default is None and content-type will be predicted by allowed
126+
content-types and body.
124127
_host_index (int/None): specifies the index of the server
125128
that we want to use.
126129
Default is read from the configuration.
@@ -149,6 +152,8 @@ def test_classname(
149152
kwargs['_check_return_type'] = kwargs.get(
150153
'_check_return_type', True
151154
)
155+
kwargs['_content_type'] = kwargs.get(
156+
'_content_type')
152157
kwargs['_host_index'] = kwargs.get('_host_index')
153158
kwargs['body'] = \
154159
body

samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/api/fake_classname_tags123_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def test_classname(
121121
_check_return_type (bool): specifies if type checking
122122
should be done one the data received from the server.
123123
Default is True.
124+
_content_type (str/None): force body content-type.
125+
Default is None and content-type will be predicted by allowed
126+
content-types and body.
124127
_host_index (int/None): specifies the index of the server
125128
that we want to use.
126129
Default is read from the configuration.
@@ -149,6 +152,8 @@ def test_classname(
149152
kwargs['_check_return_type'] = kwargs.get(
150153
'_check_return_type', True
151154
)
155+
kwargs['_content_type'] = kwargs.get(
156+
'_content_type')
152157
kwargs['_host_index'] = kwargs.get('_host_index')
153158
kwargs['body'] = \
154159
body

samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def test_classname(
121121
_check_return_type (bool): specifies if type checking
122122
should be done one the data received from the server.
123123
Default is True.
124+
_content_type (str/None): force body content-type.
125+
Default is None and content-type will be predicted by allowed
126+
content-types and body.
124127
_host_index (int/None): specifies the index of the server
125128
that we want to use.
126129
Default is read from the configuration.
@@ -149,6 +152,8 @@ def test_classname(
149152
kwargs['_check_return_type'] = kwargs.get(
150153
'_check_return_type', True
151154
)
155+
kwargs['_content_type'] = kwargs.get(
156+
'_content_type')
152157
kwargs['_host_index'] = kwargs.get('_host_index')
153158
kwargs['client'] = \
154159
client

0 commit comments

Comments
 (0)