Skip to content

Commit

Permalink
Float should be float in dict
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirKasatkin committed Oct 17, 2016
1 parent 51411d6 commit 1a92521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyswagger/spec/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def _dump_(obj):
elif isinstance(obj, (six.string_types, six.integer_types)):
return obj
elif isinstance(obj, float):
return '{:f}'.format(obj)
return obj
else:
raise ValueError('Unknown object to dump: {0}'.format(obj.__class__.__name__))

Expand Down

0 comments on commit 1a92521

Please sign in to comment.