diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2023-01-23 16:45:27 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-01-27 00:02:53 +0000 |
commit | ea6f082cd544f72400ac3e9eedb28880ebd9ccf0 (patch) | |
tree | 91864d2c3f4c8ecfb25a41f59d54314618678e14 /catalog-be/src/main/java | |
parent | 701e441228724c5b701d94cc3f1e520ce656398a (diff) |
Fix invalid property values provided for tosca functions
Issue-ID: SDC-4343
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: If4f192adcac87a461bc47c2accff53d8ce9a9f36
Diffstat (limited to 'catalog-be/src/main/java')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
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())); } |