From 8a8a24731d5b269b2b675ea9d02ca9b7609055b2 Mon Sep 17 00:00:00 2001 From: avigaffa Date: Sun, 12 Aug 2018 01:32:43 +0300 Subject: 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 --- .../java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'workflow-designer-be/src') 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; -- cgit 1.2.3-korg