regenerated python, python3 and php clients

This commit is contained in:
Russell Horton
2013-10-18 16:24:08 -07:00
parent 2dda926cb6
commit af96f33e6f
20 changed files with 317 additions and 127 deletions

View File

@@ -159,7 +159,7 @@ class ApiClient:
instance = objClass()
for attr, attrType in instance.swaggerTypes.iteritems():
if attr in obj:
if obj is not None and attr in obj and type(obj) in [list, dict]:
value = obj[attr]
if attrType in ['str', 'int', 'long', 'float', 'bool']:
attrType = eval(attrType)