Fix for boolean default value exported as String 04/131904/2
authorimamSidero <imam.hussain@est.tech>
Fri, 28 Oct 2022 14:15:57 +0000 (15:15 +0100)
committerAndr� Schmid <andre.schmid@est.tech>
Thu, 3 Nov 2022 15:26:45 +0000 (15:26 +0000)
Exporting all primitive type as expected types for complex type default values in tosca export

Issue-ID: SDC-4237
Signed-off-by: Imam hussain <imam.hussain@est.tech>
Change-Id: I0dc7009922dc0ada5b946e2fcd0b96b495fa9b62

catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java

index 9ee287b..2cc868b 100644 (file)
@@ -193,7 +193,7 @@ public class ToscaMapValueConverter extends ToscaValueBaseConverter implements T
                 if (propertyDefinition == null) {
                     log.trace("The property {} was not found under data type . Parse as map", propName);
                     if (elementValue.isJsonPrimitive()) {
-                        convValue = elementValue.getAsString();
+                        convValue = elementValue.getAsJsonPrimitive();
                     } else {
                         convValue = handleComplexJsonValue(elementValue);
                     }