Skip to content

Commit 6d1b97b

Browse files
committed
add binding back
1 parent 4ad2a5f commit 6d1b97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/structs/notifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type NotificationSubject struct {
2424
Title string `json:"title"`
2525
URL string `json:"url"`
2626
LatestCommentURL string `json:"latest_comment_url"`
27-
Type NotifySubjectType `json:"type"`
27+
Type NotifySubjectType `json:"type" binding:"In(Issue,Pull,Commit)"`
2828
State StateType `json:"state"`
2929
}
3030

0 commit comments

Comments
 (0)