You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/11/05 17:50:07 UTC

[GitHub] [trafficcontrol] mhoppa commented on a change in pull request #4082: Fix federation user validation

mhoppa commented on a change in pull request #4082: Fix federation user validation
URL: https://github.com/apache/trafficcontrol/pull/4082#discussion_r342704855
 
 

 ##########
 File path: lib/go-tc/federation.go
 ##########
 @@ -184,7 +186,9 @@ type FederationUserPost struct {
 
 // Validate validates FederationUserPost
 func (f *FederationUserPost) Validate(tx *sql.Tx) error {
-	return nil
+	return validation.ValidateStruct(f,
+		validation.Field(&f.IDs, validation.NotNil),
 
 Review comment:
   no as the perl implementation didnt -> think I should add that in there?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services