Mark deprecated syntax (#1148)

This commit is contained in:
anqiansong
2021-10-20 10:58:25 +08:00
committed by GitHub
parent a40fa405e4
commit a944a7fd7e
2 changed files with 21 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ type parser struct {
// Parse parses the api file
func Parse(filename string) (*spec.ApiSpec, error) {
astParser := ast.NewParser(ast.WithParserPrefix(filepath.Base(filename)))
astParser := ast.NewParser(ast.WithParserPrefix(filepath.Base(filename)), ast.WithParserDebug())
ast, err := astParser.Parse(filename)
if err != nil {
return nil, err