From 5b132d205f1a87889b6e52140e45e8afba1d5692 Mon Sep 17 00:00:00 2001 From: imamSidero Date: Fri, 28 Oct 2022 15:15:57 +0100 Subject: Fix for boolean default value exported as String Exporting all primitive type as expected types for complex type default values in tosca export Issue-ID: SDC-4237 Signed-off-by: Imam hussain Change-Id: I0dc7009922dc0ada5b946e2fcd0b96b495fa9b62 --- .../openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-model/src') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java index 9ee287b333..2cc868b17c 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java @@ -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); } -- cgit 1.2.3-korg