fix: Allow up to 1000 characters for label description (#948)

The database schema already supports 1,000 characters for label
description, so this seems just like an oversight.
This commit is contained in:
Michael Manganiello
2025-08-20 16:29:49 -03:00
committed by GitHub
parent e810571bf1
commit 8af1e8fcba
9 changed files with 10 additions and 10 deletions

View File

@@ -20,14 +20,14 @@ type LabelRepository struct {
type (
LabelCreate struct {
Name string `json:"name" validate:"required,min=1,max=255"`
Description string `json:"description" validate:"max=255"`
Description string `json:"description" validate:"max=1000"`
Color string `json:"color"`
}
LabelUpdate struct {
ID uuid.UUID `json:"id"`
Name string `json:"name" validate:"required,min=1,max=255"`
Description string `json:"description" validate:"max=255"`
Description string `json:"description" validate:"max=1000"`
Color string `json:"color"`
}