From 61d713e372cce2ce69171067c1157998eeb5dda4 Mon Sep 17 00:00:00 2001 From: PeeAyBee Date: Mon, 11 Dec 2023 15:03:13 +0300 Subject: [PATCH] EPMRPP-88638 || Add name validation for launch import endpoint (#364) --- .../epam/ta/reportportal/ws/model/launch/LaunchImportRQ.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/epam/ta/reportportal/ws/model/launch/LaunchImportRQ.java b/src/main/java/com/epam/ta/reportportal/ws/model/launch/LaunchImportRQ.java index 8259b365..cd6cd12f 100644 --- a/src/main/java/com/epam/ta/reportportal/ws/model/launch/LaunchImportRQ.java +++ b/src/main/java/com/epam/ta/reportportal/ws/model/launch/LaunchImportRQ.java @@ -18,6 +18,8 @@ import static com.epam.ta.reportportal.ws.model.ValidationConstraints.MAX_PARAMETERS_LENGTH; +import com.epam.ta.reportportal.ws.annotations.NotBlankWithSize; +import com.epam.ta.reportportal.ws.model.ValidationConstraints; import com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ; import com.fasterxml.jackson.annotation.JsonAlias; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +38,7 @@ public class LaunchImportRQ { @JsonProperty(value = "name") @ApiModelProperty + @NotBlankWithSize(min = ValidationConstraints.MIN_LAUNCH_NAME_LENGTH, max = ValidationConstraints.MAX_NAME_LENGTH) protected String name; @JsonProperty(value = "description")