优化type处理
This commit is contained in:
parent
8bc001fc79
commit
015dff14d0
@ -149,6 +149,7 @@ func generatePathParameterConfig(swaggerInfo *define.Swagger, pathConfig *define
|
|||||||
}
|
}
|
||||||
if len(parentPath) > 0 {
|
if len(parentPath) > 0 {
|
||||||
generateParam.Schema["$ref"] = "#/definitions/" + strings.TrimLeft(pathConfig.Uri, "/") + ".jsonBody"
|
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)
|
swaggerInfo.Paths[pathConfig.Uri][pathConfig.Method].Parameters = append(swaggerInfo.Paths[pathConfig.Uri][pathConfig.Method].Parameters, generateParam)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user