Browse Source

Merge pull request #578 from tvanriper/patch-1

Fix for projects with 'tests' in path
pull/586/head
Faissal Elamraoui 1 year ago
committed by GitHub
parent
commit
36a17c40b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      generate/swaggergen/g_docs.go

+ 1
- 1
generate/swaggergen/g_docs.go View File

@ -119,7 +119,7 @@ func ParsePackagesFromDir(dirpath string) {
// all 'tests' folders and dot folders wihin dirpath
d, _ := filepath.Rel(dirpath, fpath)
if !(d == "vendor" || strings.HasPrefix(d, "vendor"+string(os.PathSeparator))) &&
!strings.Contains(fpath, "tests") &&
!strings.Contains(d, "tests") &&
!(d[0] == '.') {
err = parsePackageFromDir(fpath)
if err != nil {

Loading…
Cancel
Save