fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-customer] 11/46: added validation to prevent empty commands in task definition
Date Mon, 22 Jan 2018 15:47:12 GMT
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 <mgeiss@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.

Mime
View raw message