From 9408f9de81df904cecceb1adb75d3b758e49ec9d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 5 Aug 2016 21:25:42 -0700 Subject: [PATCH] Add binding validation rule --- org_member.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org_member.go b/org_member.go index 8d8e208..d9cdada 100644 --- a/org_member.go +++ b/org_member.go @@ -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 {