Add binding validation rule
This commit is contained in:
parent
28d53c48e2
commit
9408f9de81
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type AddOrgMembershipOption struct {
|
type AddOrgMembershipOption struct {
|
||||||
Role string `json:"role"`
|
Role string `json:"role" binding:"Required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) AddOrgMembership(org, user string, opt AddOrgMembershipOption) error {
|
func (c *Client) AddOrgMembership(org, user string, opt AddOrgMembershipOption) error {
|
||||||
|
|
Loading…
Reference in a new issue