Skip to content

Commit

Permalink
fix: make workflow optional
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Sep 11, 2024
1 parent 112e2bd commit 82d1dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controllers/designs/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var validate *validator.Validate
type CreateDesignBody struct {
Title string `json:"title" form:"title" validate:"required,min=3,max=2048"`
Body string `json:"body" form:"body" validate:"required"`
WorkflowID uuid.UUID `json:"workflow_id" form:"workflow_id" validate:"uuid"`
WorkflowID uuid.UUID `json:"workflow_id" form:"omitempty,workflow_id" validate:"omitempty,required,uuid"`
Tags []struct {
Name string `json:"name" form:"name" validate:"required"`
Value string `json:"value" form:"value" validate:"required"`
Expand Down

0 comments on commit 82d1dc5

Please sign in to comment.