This is an automated email from the ASF dual-hosted git repository.

ofuks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/develop by this push:
     new 71c38dc  [DLAB-1524] The endpoints field verification (#639)
71c38dc is described below

commit 71c38dcb04d69d17f0724a4659d2507cab638aff
Author: Pavel Papou <[email protected]>
AuthorDate: Fri Mar 6 10:08:26 2020 -0500

    [DLAB-1524] The endpoints field verification (#639)
    
    [DLAB-1524] The endpoints field verification
---
 .../src/main/java/com/epam/dlab/backendapi/domain/EndpointDTO.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/EndpointDTO.java
 
b/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/EndpointDTO.java
index 6b6e978..280b397 100644
--- 
a/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/EndpointDTO.java
+++ 
b/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/EndpointDTO.java
@@ -33,11 +33,13 @@ import org.hibernate.validator.constraints.URL;
 public class EndpointDTO {
 
        private static final String URL_REGEXP_VALIDATION = 
"^(http(s)?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]";
-       @NotEmpty
-       @NotBlank
+       @NotEmpty(message = "Endpoint name field cannot be empty")
+       @NotBlank(message = "Endpoint name field cannot be blank")
        private final String name;
        @URL(regexp = URL_REGEXP_VALIDATION, message = "endpoint field is in 
improper format!")
        private final String url;
+       @NotEmpty(message = "Account name field cannot be empty")
+       @NotBlank(message = "Account name field cannot be blank")
        private final String account;
        @JsonProperty("endpoint_tag")
        private final String tag;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to