Fix compilation error when building 86/133386/2
authorJvD_Ericsson <jeff.van.dam@est.tech>
Wed, 22 Feb 2023 15:16:40 +0000 (15:16 +0000)
committerJeff van Dam <jeff.van.dam@est.tech>
Wed, 22 Feb 2023 16:28:31 +0000 (16:28 +0000)
isPropertyNotMappedAsInput function renamed to isValueAToscaFunction

Issue-ID: SDC-4413
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I63cd5c17c8e39ed5634eb0a206128dfc86d6b5e6

catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java

index 5e127f4..4893c02 100644 (file)
@@ -374,7 +374,7 @@ public class PropertyValueConstraintValidationUtil {
                 final PropertyDefinition propertyCopyWithNewValue = copyPropertyWithNewValue(propertyDefinition,
                     objectMapper.writeValueAsString(value),mapKey);
                 propertyCopyWithNewValue.setToscaSubPath(mapKey);
-                if (isPropertyNotMappedAsInput(propertyCopyWithNewValue)) {
+                if (!isValueAToscaFunction(propertyCopyWithNewValue)) {
                     if (ToscaType.isPrimitiveType(schemaType)) {
                         evaluateCollectionPrimitiveSchemaType(propertyCopyWithNewValue, schemaType);
                     } else if (ToscaType.isCollectionType(schemaType)) {