Skip to content

Commit

Permalink
EPMRPP-88638 || Add name validation for launch import endpoint (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik authored Dec 11, 2023
1 parent 87c7b44 commit 61d713e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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")
Expand Down

0 comments on commit 61d713e

Please sign in to comment.