mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 19:37:06 +00:00
@@ -159,7 +159,7 @@ class ApiClient:
|
||||
instance = objClass()
|
||||
|
||||
for attr, attrType in instance.swaggerTypes.iteritems():
|
||||
if attr in obj and type(obj) in [list, dict]:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user