Add binding validation rule

This commit is contained in:
Unknwon 2016-08-05 21:25:42 -07:00
parent 28d53c48e2
commit 9408f9de81

View file

@ -11,7 +11,7 @@ import (
)
type AddOrgMembershipOption struct {
Role string `json:"role"`
Role string `json:"role" binding:"Required"`
}
func (c *Client) AddOrgMembership(org, user string, opt AddOrgMembershipOption) error {