fix(dto):lab4 allow empty text when attachment_ids present

This commit is contained in:
Голиков Maximillian Антон
2026-10-22 13:52:11 +03:00
parent 0a72eab1da
commit 0834ac822a
+2 -2
View File
@@ -5,8 +5,8 @@ import (
)
type CreateMessageRequest struct {
Text string `json:"text" binding:"required,min=1,max=4000"`
AttachmentIDs []string `json:"attachment_ids"`
Text string `json:"text" binding:"max=4000"`
AttachmentIDs []string `json:"attachment_ids" binding:"max=10,dive,uuid"`
}
type MessageResponse struct {