From 33a5ec22b18c892229272452d5b6891aae72f7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 25 Apr 2024 17:58:28 +0800 Subject: [PATCH] update doc --- swagger/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger/run.go b/swagger/run.go index 5e453ec..90ac89d 100644 --- a/swagger/run.go +++ b/swagger/run.go @@ -216,7 +216,7 @@ func generateParameterDefinitions(swaggerInfo *define.Swagger, uri string, paren parentPath = uri + ".input" } if len(subPathArr) == 2 { - if _, exist := swaggerInfo.Definitions[parentPath]; !exist && subPathArr[0] != "[]" { + if subPathArr[0] != "[]" { initAnyDefinition(swaggerInfo, parentPath) } if subPathArr[1] == "[]" {