Skip to content

Commit

Permalink
fix: fix list loop panic
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean committed Feb 9, 2024
1 parent a78683d commit b2fddf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ func (g *generator) generateListValidation(vc *ValidateContext) error {

vc.ValCtx.WithTarget(elemName)
vt := &ValidateContext{
AST: vc.AST,
FieldName: elemName,
RawFieldName: elemName,
Resolver: vc.Resolver,
Expand Down

0 comments on commit b2fddf9

Please sign in to comment.