Skip to content

Commit

Permalink
fix: fix loop list enum panic for nil ast (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean authored Feb 18, 2024
1 parent 2779b23 commit c8cac02
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 @@ -865,6 +865,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 c8cac02

Please sign in to comment.