There was an error while loading. Please reload this page.
1 parent 5835ad7 commit 02ef68eCopy full SHA for 02ef68e
1 file changed
internal/server/tasks/dto.go
@@ -65,7 +65,7 @@ type TaskCreateRequest struct {
65
ProjectSlug string `json:"project_slug" validate:"required,max=255"`
66
Title string `json:"title" validate:"required,max=255"`
67
Description string `json:"description,omitempty" validate:"max=10000"`
68
- Priority string `json:"priority,omitempty" enums:"Trivial,Minor,Major,Critical,Blocker"`
+ Priority string `json:"priority,omitempty" validate:"omitempty,oneof=Trivial Minor Major Critical Blocker"`
69
AssigneeID *int64 `json:"assignee_id,omitempty" validate:"omitempty,min=1"`
70
DueDate *string `json:"due_date,omitempty" validate:"omitempty,datetime=2006-01-02"`
71
}
0 commit comments