Commit 45fd7e87 authored by handolukats's avatar handolukats
Browse files

TEIS-1323 updated CreateRiskStatementAssessmentPublicDto validation

parent fbef601b
......@@ -17,6 +17,7 @@ public class UpdateRiskFactorAssessmentDescriptionPublicDto {
@NotNull
private UUID id;
@Size(max = 40)
private String name;
@Size(min = 3)
@NotNull
......
......@@ -5,6 +5,8 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.UUID;
@Data
......@@ -13,6 +15,9 @@ import java.util.UUID;
@AllArgsConstructor
public class CreateRiskStatementAssessmentPublicDto {
@NotNull
private UUID riskFactorAssessmentId;
@NotNull
@Size(min = 3)
private String description;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment