Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-zhenhua committed Nov 2, 2023
1 parent 73df7c3 commit 58b5572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swagger/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"net/http"
"path"
"path/filepath"
"sort"
"strings"

Expand Down Expand Up @@ -73,7 +74,7 @@ func Load(swaggerPath string) ([]ApiPath, error) {
if exampleRef == nil {
continue
}
exampleList = append(exampleList, path.Clean(path.Join(swaggerPath, "..", exampleRef.(string))))
exampleList = append(exampleList, path.Clean(path.Join(filepath.ToSlash(swaggerPath), "..", exampleRef.(string))))
}
}
}
Expand Down

0 comments on commit 58b5572

Please sign in to comment.