diff --git a/backend/internal/httpapi/dto/message.go b/backend/internal/httpapi/dto/message.go index 0e55e84..6c9d6e1 100644 --- a/backend/internal/httpapi/dto/message.go +++ b/backend/internal/httpapi/dto/message.go @@ -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 {