Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 9408f9d

Browse files
committed
Add binding validation rule
1 parent 28d53c4 commit 9408f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org_member.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
type AddOrgMembershipOption struct {
14-
Role string `json:"role"`
14+
Role string `json:"role" binding:"Required"`
1515
}
1616

1717
func (c *Client) AddOrgMembership(org, user string, opt AddOrgMembershipOption) error {

0 commit comments

Comments
 (0)