You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by my...@apache.org on 2018/01/22 15:47:12 UTC
[fineract-cn-customer] 11/46: added validation to prevent empty
commands in task definition
This is an automated email from the ASF dual-hosted git repository.
myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-customer.git
commit 50a054e2f9d6f2f7c99c09f37fc2d0d6cdb23aeb
Author: mgeiss <mg...@mifos.org>
AuthorDate: Wed Sep 6 12:03:09 2017 +0200
added validation to prevent empty commands in task definition
---
api/src/main/java/io/mifos/customer/api/v1/domain/TaskDefinition.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/api/src/main/java/io/mifos/customer/api/v1/domain/TaskDefinition.java b/api/src/main/java/io/mifos/customer/api/v1/domain/TaskDefinition.java
index a81fba6..2a1ef6b 100644
--- a/api/src/main/java/io/mifos/customer/api/v1/domain/TaskDefinition.java
+++ b/api/src/main/java/io/mifos/customer/api/v1/domain/TaskDefinition.java
@@ -16,6 +16,7 @@
package io.mifos.customer.api.v1.domain;
import org.hibernate.validator.constraints.NotBlank;
+import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
@@ -39,6 +40,7 @@ public final class TaskDefinition {
private String identifier;
@NotNull
private Type type;
+ @NotEmpty
private Set<Command> commands;
@NotBlank
private String name;
--
To stop receiving notification emails like this one, please contact
myrle@apache.org.