diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache index 4473d29fbe8..a1c267adae6 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache @@ -195,7 +195,7 @@ class {{classname}}(object): {{^isDateTime}} {{#isDate}} if isinstance(_params['{{paramName}}'], datetime): - _query_parame.append(('{{baseName}}', _params['{{paramName}}'].strftime(self.api_client.configuration.date_format))) + _query_params.append(('{{baseName}}', _params['{{paramName}}'].strftime(self.api_client.configuration.date_format))) else: _query_params.append(('{{baseName}}', _params['{{paramName}}'])) {{/isDate}} diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py index f1be6bf1d9a..9c19d3be2b7 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py @@ -305,7 +305,7 @@ class QueryApi(object): if _params.get('date_query') is not None: # noqa: E501 if isinstance(_params['date_query'], datetime): - _query_parame.append(('date_query', _params['date_query'].strftime(self.api_client.configuration.date_format))) + _query_params.append(('date_query', _params['date_query'].strftime(self.api_client.configuration.date_format))) else: _query_params.append(('date_query', _params['date_query']))