Skip to content

Commit

Permalink
fix for issue #52
Browse files Browse the repository at this point in the history
  • Loading branch information
lain committed Jan 26, 2016
1 parent f9dddd9 commit 6964ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swagger_py_codegen/jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _normalize_dict(schema, data):

def _normalize_list(schema, data):
result = []
if isinstance(data, (list, tuple)):
if hasattr(data, '__iter__') and not isinstance(data, dict):
for item in data:
result.append(_normalize(schema.get('items'), item))
elif 'default' in schema:
Expand Down

0 comments on commit 6964ed6

Please sign in to comment.