From 35f2c39a188e3891e8e05287ebc98cd3de4a288b Mon Sep 17 00:00:00 2001 From: Dmytro Trotsenko Date: Thu, 2 Nov 2023 23:21:32 +0200 Subject: [PATCH] bugfix: changed topic name length 2 - 70 characters --- src/main/java/com/chat/yourway/dto/request/TopicRequestDto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chat/yourway/dto/request/TopicRequestDto.java b/src/main/java/com/chat/yourway/dto/request/TopicRequestDto.java index 3a69dc1d..735cc4a3 100644 --- a/src/main/java/com/chat/yourway/dto/request/TopicRequestDto.java +++ b/src/main/java/com/chat/yourway/dto/request/TopicRequestDto.java @@ -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)