Merge pull request #16 from joeybloggs/v3-development

V3 development
pull/21/head v3.0.1
Dean Karn 9 years ago
commit 262159d105
  1. 2
      validator.go

@ -216,7 +216,7 @@ func (v *Validator) validateStructRecursive(top interface{}, s interface{}) *Str
} else {
if structErrors := v.ValidateStruct(valueField.Interface()); structErrors != nil {
if structErrors := v.validateStructRecursive(top, valueField.Interface()); structErrors != nil {
validationErrors.StructErrors[typeField.Name] = structErrors
// free up memory map no longer needed
structErrors = nil

Loading…
Cancel
Save