From 6920dee99b09bee573a565d75bbeb3dcc219f7c1 Mon Sep 17 00:00:00 2001 From: "feng.yu" Date: Tue, 9 Nov 2021 17:50:11 +0800 Subject: [PATCH] fix: use FieldParserFactory instead of default TagBaseFieldParser --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.go b/parser.go index c079f04f2..525d11395 100644 --- a/parser.go +++ b/parser.go @@ -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 {