Skip to content

Commit

Permalink
Fix empty response when _response_types_map is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Chrástek committed Jan 10, 2025
1 parent 33eabf8 commit 3fe2580
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Please, include the `User-Agent` header with the name of your application or pro
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: Latest
- Package version: 0.3.5
- Package version: 0.3.6
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion phrasetms_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""


__version__ = "0.3.5"
__version__ = "0.3.6"

# import apis into sdk package
from phrasetms_client.api.additional_workflow_step_api import AdditionalWorkflowStepApi
Expand Down
2 changes: 1 addition & 1 deletion phrasetms_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def __call_api(
elif response_type:
return_data = self.deserialize(response_data, response_type)
else:
return_data = None
return_data = response_data.data

if _return_http_data_only:
return return_data
Expand Down
2 changes: 1 addition & 1 deletion phrasetms_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: Latest\n"
"SDK Package Version: 0.3.5".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 0.3.6".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "phrasetms_client"
version = "0.3.5"
version = "0.3.6"
description = "Phrase TMS API"
authors = ["Martin Chrástek"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "phrasetms-client"
VERSION = "0.3.5"
VERSION = "0.3.6"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = ["urllib3 >= 1.25.3", "python-dateutil", "pydantic >= 1.10.5, < 2", "aenum"]

Expand Down

0 comments on commit 3fe2580

Please sign in to comment.