forked from loafle/openapi-generator-original
Fix empty model object serialization in python client
This commit is contained in:
parent
8dfe230b7c
commit
10aa68c6b7
@ -581,6 +581,9 @@ class ApiClient(object):
|
|||||||
"""
|
"""
|
||||||
instance = klass()
|
instance = klass()
|
||||||
|
|
||||||
|
if(not instance.swagger_types):
|
||||||
|
return data
|
||||||
|
|
||||||
for attr, attr_type in iteritems(instance.swagger_types):
|
for attr, attr_type in iteritems(instance.swagger_types):
|
||||||
if data is not None \
|
if data is not None \
|
||||||
and instance.attribute_map[attr] in data\
|
and instance.attribute_map[attr] in data\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user