Skip to content

Commit

Permalink
fix: use FieldParserFactory instead of default TagBaseFieldParser
Browse files Browse the repository at this point in the history
  • Loading branch information
feng.yu committed Nov 9, 2021
1 parent 63bf96d commit 6920dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ func (parser *Parser) parseStructField(file *ast.File, field *ast.Field) (map[st
return map[string]spec.Schema{typeName: *schema}, nil, nil
}

ps := newTagBaseFieldParser(parser, field)
ps := parser.fieldParserFactory(parser, field)

ok, err := ps.ShouldSkip()
if err != nil {
Expand Down

0 comments on commit 6920dee

Please sign in to comment.