From 1a92521743c87a6092767f8060491109a4d6c17d Mon Sep 17 00:00:00 2001 From: Vladimir Kasatkin Date: Mon, 17 Oct 2016 18:13:52 +0700 Subject: [PATCH] Float should be float in dict --- pyswagger/spec/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyswagger/spec/base.py b/pyswagger/spec/base.py index 870b75d..33fce1b 100644 --- a/pyswagger/spec/base.py +++ b/pyswagger/spec/base.py @@ -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__))