We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0947955 commit 6f9ac86Copy full SHA for 6f9ac86
1 file changed
modules/openapi-generator/src/main/resources/python/api_client.mustache
@@ -61,6 +61,7 @@ class ApiClient:
61
'date': datetime.date,
62
'datetime': datetime.datetime,
63
'decimal': decimal.Decimal,
64
+ 'UUID': uuid.UUID,
65
'object': object,
66
}
67
_pool = None
@@ -475,6 +476,8 @@ class ApiClient:
475
476
return self.__deserialize_datetime(data)
477
elif klass is decimal.Decimal:
478
return decimal.Decimal(data)
479
+ elif klass is uuid.UUID:
480
+ return uuid.UUID(data)
481
elif issubclass(klass, Enum):
482
return self.__deserialize_enum(data, klass)
483
else:
0 commit comments