This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 29aff4f  Fix OpenApiPartSerializer converting Longs to Doubles.
29aff4f is described below

commit 29aff4fa6ae4e977794fe6f6939c3ee5cdef2ac8
Author: JamesBognar <[email protected]>
AuthorDate: Tue Jul 24 13:39:04 2018 -0400

    Fix OpenApiPartSerializer converting Longs to Doubles.
---
 .../src/main/java/org/apache/juneau/httppart/HttpPartSchema.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/httppart/HttpPartSchema.java
 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/httppart/HttpPartSchema.java
index 0633cd8..7a13930 100644
--- 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/httppart/HttpPartSchema.java
+++ 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/httppart/HttpPartSchema.java
@@ -796,10 +796,11 @@ public class HttpPartSchema {
                        return Type.OBJECT;
                if (cm.isCollectionOrArray())
                        return Type.ARRAY;
-               if (cm.isInteger())
+               if (cm.isNumber()) {
+                       if (cm.isDecimal())
+                               return Type.NUMBER;
                        return Type.INTEGER;
-               if (cm.isNumber())
-                       return Type.NUMBER;
+               }
                if (cm.isBoolean())
                        return Type.BOOLEAN;
                return Type.STRING;

Reply via email to