From 99d65a7777ed9e899e4f179e7d94789f2641649c Mon Sep 17 00:00:00 2001 From: pierre-quelin Date: Thu, 18 Nov 2021 12:11:50 +0100 Subject: [PATCH] Missing part... Need to be more python version compatible https://github.com/OpenAPITools/openapi-generator/pull/2884 --- .../src/main/resources/flaskConnexion/util.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/flaskConnexion/util.mustache b/modules/swagger-codegen/src/main/resources/flaskConnexion/util.mustache index f1367bf46dd..edb2251dd4a 100644 --- a/modules/swagger-codegen/src/main/resources/flaskConnexion/util.mustache +++ b/modules/swagger-codegen/src/main/resources/flaskConnexion/util.mustache @@ -24,9 +24,9 @@ def _deserialize(data, klass): elif klass == datetime.datetime: return deserialize_datetime(data) elif hasattr(klass, '__origin__'): - if klass.__extra__ == list: + if klass.__origin__ == list: return _deserialize_list(data, klass.__args__[0]) - if klass.__extra__ == dict: + if klass.__origin__ == dict: return _deserialize_dict(data, klass.__args__[1]) else: return deserialize_model(data, klass)