forked from loafle/openapi-generator-original
Merge pull request #1192 from SparrowJang/master
Python - response is empty object
This commit is contained in:
commit
30228dcca5
@ -270,7 +270,7 @@ class ApiClient(object):
|
||||
if klass in [int, float, str, bool]:
|
||||
return self.__deserialize_primitive(data, klass)
|
||||
elif klass == object:
|
||||
return self.__deserialize_object()
|
||||
return self.__deserialize_object(data)
|
||||
elif klass == date:
|
||||
return self.__deserialize_date(data)
|
||||
elif klass == datetime:
|
||||
@ -495,13 +495,13 @@ class ApiClient(object):
|
||||
value = data
|
||||
return value
|
||||
|
||||
def __deserialize_object(self):
|
||||
def __deserialize_object(self, value):
|
||||
"""
|
||||
Deserializes empty object.
|
||||
Return a original value.
|
||||
|
||||
:return: object.
|
||||
"""
|
||||
return object()
|
||||
return value
|
||||
|
||||
def __deserialize_date(self, string):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user