Merge pull request #16 from joeybloggs/v3-development

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

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

Loading…
Cancel
Save