aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-be')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java
index 5bf30773..1eb92fba 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java
@@ -16,16 +16,16 @@
package org.onap.sdc.workflow.persistence.types;
+import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import lombok.Data;
-import javax.validation.constraints.NotNull;
@Data
public class ParameterEntity {
private String id;
@NotNull(message = "Parameter name may not be null")
- @Pattern(regexp = "[A-Za-z0-9_ ]*", message = "Parameter name must contain only letters, digits and underscores")
+ @Pattern(regexp = "[A-Za-z0-9_]+", message = "Parameter name must contain only letters, digits and underscores")
private String name;
@NotNull
private ParameterType type;