From 015dff14d024926c98add7478a8712b6c3df7158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 23 Apr 2024 12:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96type=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swagger/run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/swagger/run.go b/swagger/run.go index 342e570..0e04688 100644 --- a/swagger/run.go +++ b/swagger/run.go @@ -149,6 +149,7 @@ func generatePathParameterConfig(swaggerInfo *define.Swagger, pathConfig *define } if len(parentPath) > 0 { generateParam.Schema["$ref"] = "#/definitions/" + strings.TrimLeft(pathConfig.Uri, "/") + ".jsonBody" + generateParam.Type = "" } swaggerInfo.Paths[pathConfig.Uri][pathConfig.Method].Parameters = append(swaggerInfo.Paths[pathConfig.Uri][pathConfig.Method].Parameters, generateParam) }