From 5526028d3bc464937c9a4373a7fc6e577d781cad Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Wed, 22 Feb 2023 14:33:47 +0000 Subject: Fix valid values for list and map Signed-off-by: MichaelMorris Issue-ID: SDC-4412 Change-Id: I672193784c51250173b7e5c4c43354a0b9852c21 --- .../sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main/java') 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 4893c02361..247fff9bc6 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 @@ -144,7 +144,7 @@ public class PropertyValueConstraintValidationUtil { for (PropertyConstraint propertyConstraint : propertyDefinition.getConstraints()) { try { propertyConstraint.initialize(toscaType, propertyDefinition.getSchema()); - propertyConstraint.validate(toscaType, propertyDefinition.getSchema(), propertyDefinition.getValue()); + propertyConstraint.validate(propertyDefinition); } catch (ConstraintValueDoNotMatchPropertyTypeException | ConstraintViolationException exception) { errorMessages.add(propertyConstraint.getErrorMessage(toscaType, exception, getCompletePropertyName(propertyDefinition))); } catch (IllegalArgumentException ie) { -- cgit 1.2.3-korg