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
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);
}