aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be/src/main
diff options
context:
space:
mode:
authoravigaffa <avi.gaffa@amdocs.com>2018-08-12 01:32:43 +0300
committeravigaffa <avi.gaffa@amdocs.com>2018-08-12 01:33:08 +0300
commit8a8a24731d5b269b2b675ea9d02ca9b7609055b2 (patch)
tree30aaab67ef76d9c199c51523fe4b2b4b2e5762bb /workflow-designer-be/src/main
parent2b2107ebdb0defc9f87e474995b09bb96463e593 (diff)
Fixing Input\Output bugs
1. I\O name must contain at least 1 character 2. name contains alphanumeric characters and underscores(No spaces) Change-Id: I04457bbab192b4f6e46c1c46c1c7fd78991e3e39 Issue-ID: SDC-1518 Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
Diffstat (limited to 'workflow-designer-be/src/main')
-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;