aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/openecomp/sdc/toscaparser/api/elements/constraints/Constraint.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/openecomp/sdc/toscaparser/api/elements/constraints/Constraint.java b/src/main/java/org/openecomp/sdc/toscaparser/api/elements/constraints/Constraint.java
index 253cc0c..5cf7444 100644
--- a/src/main/java/org/openecomp/sdc/toscaparser/api/elements/constraints/Constraint.java
+++ b/src/main/java/org/openecomp/sdc/toscaparser/api/elements/constraints/Constraint.java
@@ -5,6 +5,7 @@ import java.util.LinkedHashMap;
import org.openecomp.sdc.toscaparser.api.common.JToscaValidationIssue;
import org.openecomp.sdc.toscaparser.api.elements.ScalarUnit;
+import org.openecomp.sdc.toscaparser.api.functions.Function;
import org.openecomp.sdc.toscaparser.api.utils.ThreadLocalsHolder;
public abstract class Constraint {
@@ -141,6 +142,11 @@ public abstract class Constraint {
}
public void validate(Object value) {
+ if (Function.isFunction(value)){
+ //skipping constraints check for functions
+ return;
+ }
+
valueMsg = value;
boolean bFound = false;
for(String s: ScalarUnit.SCALAR_UNIT_TYPES) {