Merge pull request #380 from qdentity/struct-filtered-ctx-fix

Fix unused ctx in StructFilteredCtx
pull/381/head
Dean Karn 6 years ago committed by GitHub
commit 29f025ab2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      validator_instance.go

@ -318,7 +318,7 @@ func (v *Validate) StructFilteredCtx(ctx context.Context, s interface{}, fn Filt
vd.ffn = fn
// vd.hasExcludes = false // only need to reset in StructPartial and StructExcept
vd.validateStruct(context.Background(), top, val, val.Type(), vd.ns[0:0], vd.actualNs[0:0], nil)
vd.validateStruct(ctx, top, val, val.Type(), vd.ns[0:0], vd.actualNs[0:0], nil)
if len(vd.errs) > 0 {
err = vd.errs

Loading…
Cancel
Save