Skip to content

Commit 35c41e9

Browse files
committed
Fix empty response when _response_types_map is empty
1 parent 33eabf8 commit 35c41e9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Please, include the `User-Agent` header with the name of your application or pro
1313
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1414

1515
- API version: Latest
16-
- Package version: 0.3.5
16+
- Package version: 0.3.6
1717
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1818

1919
## Requirements.

phrasetms_client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"""
1515

1616

17-
__version__ = "0.3.5"
17+
__version__ = "0.3.6"
1818

1919
# import apis into sdk package
2020
from phrasetms_client.api.additional_workflow_step_api import AdditionalWorkflowStepApi

phrasetms_client/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def __call_api(
266266
elif response_type:
267267
return_data = self.deserialize(response_data, response_type)
268268
else:
269-
return_data = None
269+
return_data = response_data.data
270270

271271
if _return_http_data_only:
272272
return return_data

phrasetms_client/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def to_debug_report(self):
423423
"OS: {env}\n"
424424
"Python Version: {pyversion}\n"
425425
"Version of the API: Latest\n"
426-
"SDK Package Version: 0.3.5".format(env=sys.platform, pyversion=sys.version)
426+
"SDK Package Version: 0.3.6".format(env=sys.platform, pyversion=sys.version)
427427
)
428428

429429
def get_host_settings(self):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "phrasetms_client"
3-
version = "0.3.5"
3+
version = "0.3.6"
44
description = "Phrase TMS API"
55
authors = ["Martin Chrástek"]
66
license = "NoLicense"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# prerequisite: setuptools
2222
# http://pypi.python.org/pypi/setuptools
2323
NAME = "phrasetms-client"
24-
VERSION = "0.3.5"
24+
VERSION = "0.3.6"
2525
PYTHON_REQUIRES = ">=3.7"
2626
REQUIRES = ["urllib3 >= 1.25.3", "python-dateutil", "pydantic >= 1.10.5, < 2", "aenum"]
2727

0 commit comments

Comments
 (0)