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