diff options
author | MichaelMorris <michael.morris@est.tech> | 2023-02-22 14:33:47 +0000 |
---|---|---|
committer | Francisco Javier Paradela Vila <javier.paradela.vila@est.tech> | 2023-02-24 11:31:10 +0000 |
commit | 5526028d3bc464937c9a4373a7fc6e577d781cad (patch) | |
tree | b367e438fac665cd42c4062b1829d3059be4c81a /catalog-be/src/main | |
parent | 96bfbbad6b2a7e6db7d4e78ed182c8be4f7c895f (diff) |
Fix valid values for list and map
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4412
Change-Id: I672193784c51250173b7e5c4c43354a0b9852c21
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java | 2 |
1 files changed, 1 insertions, 1 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 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) { |