diff --git a/binding/binding.go b/binding/binding.go index cff06f88..1f72b63b 100644 --- a/binding/binding.go +++ b/binding/binding.go @@ -209,6 +209,11 @@ func Validate(obj interface{}, parents ...string) error { if err != nil { return err } + } else if fieldType == reflect.Slice && field.Type.Elem().Kind() == reflect.Struct { + err := Validate(fieldValue, field.Name) + if err != nil { + return err + } } } }