summaryrefslogtreecommitdiffstats
path: root/catalog-model/src
diff options
context:
space:
mode:
authorimamSidero <imam.hussain@est.tech>2022-10-28 15:15:57 +0100
committerAndr� Schmid <andre.schmid@est.tech>2022-11-03 15:26:45 +0000
commit5b132d205f1a87889b6e52140e45e8afba1d5692 (patch)
tree71a5d9cae2bd146c6ea5eb5b48efaa757c0a8bb1 /catalog-model/src
parent1f681f279919470d1273ba38f4b5bdcef67759e7 (diff)
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 <imam.hussain@est.tech> Change-Id: I0dc7009922dc0ada5b946e2fcd0b96b495fa9b62
Diffstat (limited to 'catalog-model/src')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaMapValueConverter.java2
1 files changed, 1 insertions, 1 deletions
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);
}