2011shenlin commented on code in PR #11:
URL: 
https://github.com/apache/rocketmq-eventbridge/pull/11#discussion_r874621070


##########
adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/dto/apidestination/CreateApiDestinationRequest.java:
##########
@@ -0,0 +1,37 @@
+package org.apache.rocketmq.eventbridge.adapter.api.dto.apidestination;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import org.apache.rocketmq.eventbridge.adapter.api.dto.BaseResponse;
+import org.hibernate.validator.constraints.Length;
+
+import javax.validation.Valid;
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.Pattern;
+
+@Getter
+@Setter
+@ToString
+public class CreateApiDestinationRequest extends BaseResponse {
+
+    @Pattern(regexp = "^[A-Za-z|0-9][A-Za-z|0-9|_|-]+$", message = "The 
ApiDestination name is invalid! Which should match the pattern.")

Review Comment:
   mv the error msg to the Errors , and import it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to