[ofbiz-plugins] branch trunk updated: Fixed: OpenApi mapping for Integer. Improved: Added missing OpenApi mapping for BigInteger.(OFBIZ-11328)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Fixed: OpenApi mapping for Integer. Improved: Added missing OpenApi mapping for BigInteger.(OFBIZ-11328)

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

grv pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2841acf  Fixed: OpenApi mapping for Integer. Improved: Added missing OpenApi mapping for BigInteger.(OFBIZ-11328)
2841acf is described below

commit 2841acfb81212ad4668fe191bb3e4556f682dd3d
Author: Girish Vasmatkar <[hidden email]>
AuthorDate: Fri Aug 21 16:06:32 2020 +0530

    Fixed: OpenApi mapping for Integer.
    Improved: Added missing OpenApi mapping for BigInteger.(OFBIZ-11328)
---
 .../src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java b/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java
index 0856581..7e32226 100644
--- a/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java
+++ b/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java
@@ -49,7 +49,7 @@ public final class OpenApiUtil {
         CLASS_ALIAS.put("java.sql.Time", "String");
         CLASS_ALIAS.put("Timestamp", "Timestamp");
         CLASS_ALIAS.put("java.sql.Timestamp", "Timestamp");
-        CLASS_ALIAS.put("Integer", "Int");
+        CLASS_ALIAS.put("Integer", "Integer");
         CLASS_ALIAS.put("java.lang.Integer", "Int");
         CLASS_ALIAS.put("Long", "Long");
         CLASS_ALIAS.put("java.lang.Long", "Long");
@@ -95,6 +95,7 @@ public final class OpenApiUtil {
         JAVA_OPEN_API_MAP.put("Float", NumberSchema.class);
         JAVA_OPEN_API_MAP.put("Double", NumberSchema.class);
         JAVA_OPEN_API_MAP.put("BigDecimal", NumberSchema.class);
+        JAVA_OPEN_API_MAP.put("BigInteger", IntegerSchema.class);
         JAVA_OPEN_API_MAP.put("Timestamp", DateSchema.class);
 
     }