diff options
author | franciscovila <javier.paradela.vila@est.tech> | 2022-10-18 16:02:02 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2022-11-23 10:19:09 +0000 |
commit | 166d45efe6de92ce067bc7b6065a0d7de94a6388 (patch) | |
tree | 98beeddb9f19651137b9dedfd8a5c91566934f41 /catalog-model/src/main/java | |
parent | 83bbca087a66d5ea4cff1f5d066f7761948a2cb3 (diff) |
Fix property constraints validation
Fix property constraints validation behaviour when a property
is not required shouldnt be validated vs constraints if no
value is provided. Also add constraints validation for length
measures in list, map and string types.
Issue-ID: SDC-4222
Signed-off-by: franciscovila <javier.paradela.vila@est.tech>
Change-Id: I48ebb46b3de9ddac3d9dd91400ea0fad983aa94d
Diffstat (limited to 'catalog-model/src/main/java')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraint.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraint.java index 191993ad89..d2c8b8c17d 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraint.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraint.java @@ -77,6 +77,6 @@ public class LengthConstraint extends AbstractPropertyConstraint { @Override public String getErrorMessage(ToscaType toscaType, ConstraintFunctionalException e, String propertyName) { - return getErrorMessage(toscaType, e, propertyName, "%s length must be %s", String.valueOf(length)); + return getErrorMessage(toscaType, e, propertyName, "%s length must be [%s]", String.valueOf(length)); } } |