Skip to content

Commit

Permalink
fix(ZNTA-2318): also constrain comment max len on server
Browse files Browse the repository at this point in the history
  • Loading branch information
efloden committed Feb 9, 2018
1 parent f569ca4 commit e48b224
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -6,6 +6,7 @@
import org.zanata.common.ContentState;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
Expand All @@ -26,6 +27,7 @@ public class ReviewData implements Serializable {
private Integer revision;

@JsonProperty("comment")
@Size(max = 500)
private String comment;

private Long reviewCriteriaId;
Expand Down

0 comments on commit e48b224

Please sign in to comment.