Fix in_range constraint validation gives unhelpful error message 20/132620/1
authorJvD_Ericsson <jeff.van.dam@est.tech>
Wed, 7 Dec 2022 13:19:37 +0000 (13:19 +0000)
committerJeff van Dam <jeff.van.dam@est.tech>
Wed, 7 Dec 2022 13:52:29 +0000 (13:52 +0000)
Issue-ID: SDC-4293
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: If31fb515987c2e6c040e4fbf1d00ca4f669ed525

catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java

index 2256f7d..2567cec 100644 (file)
@@ -130,7 +130,7 @@ public class InRangeConstraint extends AbstractPropertyConstraint {
 
     @Override
     public String getErrorMessage(ToscaType toscaType, ConstraintFunctionalException e, String propertyName) {
-        return getErrorMessage(toscaType, e, propertyName, "%s property value must be between >= [%s] and <= [%s]", String.valueOf(min),
+        return getErrorMessage(toscaType, e, propertyName, "%s property value must be in a range of %s", String.valueOf(min),
             String.valueOf(max));
     }