Python: fixing an issue in swagger python code generation where attribute classes aren't respected

This commit is contained in:
James Ebentier
2015-03-09 18:18:20 -07:00
parent 27c6af3491
commit b2cfb77222

View File

@@ -226,7 +226,7 @@ class ApiClient:
subValues.append(self.deserialize(subValue, subClass))
setattr(instance, attr, subValues)
else:
setattr(instance, attr, self.deserialize(value, objClass))
setattr(instance, attr, self.deserialize(value, attrType))
return instance