mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
openapi
This commit is contained in:
@ -200,7 +200,7 @@ func golangTypeToSchemaName(t reflect.Type) string {
|
||||
s = gstr.TrimLeft(t.String(), "*")
|
||||
)
|
||||
if pkgPath := t.PkgPath(); pkgPath != "" && pkgPath != "." {
|
||||
s = gstr.Replace(t.PkgPath(), `/`, `_`) + gstr.SubStrFrom(s, ".")
|
||||
s = gstr.Replace(t.PkgPath(), `/`, `.`) + gstr.SubStrFrom(s, ".")
|
||||
}
|
||||
s = gstr.ReplaceByMap(s, map[string]string{
|
||||
` `: ``,
|
||||
|
||||
Reference in New Issue
Block a user