From c0d29b0d2a0d4455044794996b789a9d9f208d4a Mon Sep 17 00:00:00 2001 From: wucheng Date: Thu, 27 Aug 2020 14:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89map=E7=BB=93=E6=9E=84=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- generate/swaggergen/g_docs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate/swaggergen/g_docs.go b/generate/swaggergen/g_docs.go index 5e81a1a..fc3752d 100644 --- a/generate/swaggergen/g_docs.go +++ b/generate/swaggergen/g_docs.go @@ -1266,7 +1266,7 @@ func typeAnalyser(f *ast.Field) (isSlice bool, realType, swaggerType string) { if isBasicType(val) { return false, astTypeMap, basicTypes[val] } - return false, val, astTypeObject + return false, fmt.Sprintf("map[%v][%v]", t.Key, t.Value), astTypeObject case *ast.InterfaceType: return false, "interface", astTypeObject }