release goctl swagger (#4829)

This commit is contained in:
kesonan
2025-05-04 14:05:41 +08:00
committed by GitHub
parent 493f3bad0f
commit c3820a95c1
5 changed files with 10 additions and 11 deletions

View File

@@ -80,7 +80,7 @@ func spec2Path(info apiSpec.Info, group apiSpec.Group, route apiSpec.Route) spec
Summary: getStringFromKVOrDefault(route.AtDoc.Properties, "summary", getFirstUsableString(route.AtDoc.Text, route.Handler)),
Deprecated: getBoolFromKVOrDefault(route.AtDoc.Properties, "deprecated", false),
Parameters: parametersFromType(route.Method, route.RequestType),
Responses: jsonResponseFromType(info, route.ResponseType),
Responses: jsonResponseFromType(info, route.AtDoc, route.ResponseType),
Security: security,
},
}