diff --git a/languages/python/templates/api.mustache b/languages/python/templates/api.mustache index e8c7097..a2dfaa1 100644 --- a/languages/python/templates/api.mustache +++ b/languages/python/templates/api.mustache @@ -35,6 +35,7 @@ class {{classname}}: @validate_call {{#asyncio}}async {{/asyncio}}def {{operationId}}{{>partial_api_args}} -> {{{returnType}}}{{^returnType}}None{{/returnType}}: {{>partial_api}} + response_data = {{#asyncio}}await {{/asyncio}}self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -49,6 +50,7 @@ class {{classname}}: @validate_call {{#asyncio}}async {{/asyncio}}def {{operationId}}_with_http_info{{>partial_api_args}} -> ApiResponse[{{{returnType}}}{{^returnType}}None{{/returnType}}]: {{>partial_api}} + response_data = {{#asyncio}}await {{/asyncio}}self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -63,6 +65,7 @@ class {{classname}}: @validate_call {{#asyncio}}async {{/asyncio}}def {{operationId}}_without_preload_content{{>partial_api_args}} -> RESTResponseType: {{>partial_api}} + response_data = {{#asyncio}}await {{/asyncio}}self.api_client.call_api( *_param, _request_timeout=_request_timeout diff --git a/scripts/generate-sdk/generate-sdk.sh b/scripts/generate-sdk/generate-sdk.sh index 96d579c..b65c1be 100755 --- a/scripts/generate-sdk/generate-sdk.sh +++ b/scripts/generate-sdk/generate-sdk.sh @@ -60,12 +60,12 @@ go) python) # When the GENERATOR_VERSION changes, migrate also the templates in templates/python # Renovate: datasource=github-tags depName=OpenAPITools/openapi-generator versioning=semver - GENERATOR_VERSION="v7.14.0" + GENERATOR_VERSION="v7.19.0" ;; java) # When the GENERATOR_VERSION changes, migrate also the templates in templates/java # Renovate: datasource=github-tags depName=OpenAPITools/openapi-generator versioning=semver - GENERATOR_VERSION="v7.15.0" + GENERATOR_VERSION="v7.19.0" ;; *) echo "SDK language not supported."