Skip to content

Commit

Permalink
Merge pull request #16 from joeybloggs/v3-development
Browse files Browse the repository at this point in the history
V3 development
  • Loading branch information
Dean Karn authored and Dean Karn committed Mar 19, 2015
2 parents cfea08f + 684c339 commit 262159d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 262159d

Please sign in to comment.