Skip to content

Commit b2d1508

Browse files
committed
target name is required
1 parent 3b236c4 commit b2d1508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/task/target.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Targets []Target
1616
// is updated.
1717
type Target struct {
1818
// An optional label for the target
19-
Name string `json:"name"`
19+
Name string `required:"true" json:"name"`
2020

2121
// The repository URL to watch for changes, either http or ssh.
2222
RepoURL string `required:"true" json:"url"`

0 commit comments

Comments
 (0)