Skip to content

Commit

Permalink
Merge pull request #31 from Chat-Your-Way/CHAT-115-Bug-fix-topics-nam…
Browse files Browse the repository at this point in the history
…e-length

Chat 115 bug fix topics name length
  • Loading branch information
Troha7 authored Nov 8, 2023
2 parents 1364c91 + 35f2c39 commit 96ba9a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class TopicRequestDto {

@Schema(description = "New Topic name", example = "My programming topic")
@NotEmpty(message = "Topic name cannot be empty")
@Size(min = 3, max = 30, message = "Name length should be from 3 to 30 symbols")
@Size(min = 2, max = 70, message = "Name length should be from 2 to 70 symbols")
private String topicName;

@ArraySchema(schema = @Schema(description = "Tags", example = "#programming"), minItems = 1, uniqueItems = true)
Expand Down

0 comments on commit 96ba9a4

Please sign in to comment.