Merge branch 'issue-3647' of https://github.com/zbiro/swagger-codegen into zbiro-issue-3647

This commit is contained in:
wing328
2016-08-31 00:25:06 +08:00
3 changed files with 7 additions and 1 deletions

View File

@@ -564,6 +564,9 @@ class ApiClient(object):
"""
instance = klass()
if not instance.swagger_types:
return data
for attr, attr_type in iteritems(instance.swagger_types):
if data is not None \
and instance.attribute_map[attr] in data\