mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
fix: swagger separator incorrect in Windows OS (#4799)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -279,7 +278,7 @@ func pathVariable2SwaggerVariable(path string) string {
|
||||
resp = append(resp, v)
|
||||
}
|
||||
}
|
||||
return "/" + filepath.Join(resp...)
|
||||
return "/" + strings.Join(resp, "/")
|
||||
}
|
||||
|
||||
func wrapCodeMsgProps(properties spec.SchemaProps, api apiSpec.Info) spec.SchemaProps {
|
||||
|
||||
Reference in New Issue
Block a user