From ea6f082cd544f72400ac3e9eedb28880ebd9ccf0 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Mon, 23 Jan 2023 16:45:27 +0000 Subject: Fix invalid property values provided for tosca functions Issue-ID: SDC-4343 Signed-off-by: JvD_Ericsson Change-Id: If4f192adcac87a461bc47c2accff53d8ce9a9f36 --- .../sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'catalog-be/src') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java b/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java index 19fe69e421..903c0dd58e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java @@ -145,8 +145,8 @@ public class PropertyValueConstraintValidationUtil { errorMessages.add(ie.getMessage()); } } - } else if (isPropertyNotMappedAsInput(propertyDefinition) && ToscaType.isPrimitiveType(propertyDefinition.getType()) && !toscaType - .isValidValue(propertyDefinition.getValue())) { + } else if (isPropertyNotMappedAsInput(propertyDefinition) && ToscaType.isPrimitiveType(propertyDefinition.getType()) + && !propertyDefinition.isToscaFunction() && !toscaType.isValidValue(propertyDefinition.getValue())) { errorMessages.add(String.format("Unsupported value provided for %s property supported value type is %s.", getCompletePropertyName(propertyDefinition), toscaType.getType())); } -- cgit 1.2.3-korg