MCPcopy
hub / github.com/swaggo/swag / ParseAPI

Method ParseAPI

parser.go:381–383  ·  view source on GitHub ↗

ParseAPI parses general api info for given searchDir and mainAPIFile.

(searchDir string, mainAPIFile string, parseDepth int)

Source from the content-addressed store, hash-verified

379
380// ParseAPI parses general api info for given searchDir and mainAPIFile.
381func (parser *Parser) ParseAPI(searchDir string, mainAPIFile string, parseDepth int) error {
382 return parser.ParseAPIMultiSearchDir([]string{searchDir}, mainAPIFile, parseDepth)
383}
384
385// skipPackageByPrefix returns true the given pkgpath does not match
386// any user-defined package path prefixes.

Callers 15

TestParseSimpleApi1Function · 0.80
TestParseStructCommentFunction · 0.80
TestParsePetApiFunction · 0.80
TestParseCompositionFunction · 0.80
TestParseImportAliasesFunction · 0.80
TestParseTypeOverridesFunction · 0.80
TestGlobalSecurityFunction · 0.80

Calls 1

Tested by 15

TestParseSimpleApi1Function · 0.64
TestParseStructCommentFunction · 0.64
TestParsePetApiFunction · 0.64
TestParseCompositionFunction · 0.64
TestParseImportAliasesFunction · 0.64
TestParseTypeOverridesFunction · 0.64
TestGlobalSecurityFunction · 0.64