You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If general API info is in the same file as operations, then the @description tag of operations will also get appended to the general info. I think this was introduced after adding support for multiline @description in the general API.
Example
Code in the same file:
// @title Test API
// @version 0.1
// @description General API description
// @Summary Returns true
// @Description Always returns true, really
// @Success 200
// @Router /test [get]
func op() bool {
return true
}
After swag init, it will generate this description for the general API:
"description": "General API description\nAlways returns true, really",
And the operation's description itself will be correct:
"description": "Always returns true, really",
The text was updated successfully, but these errors were encountered:
Summary
Swag version 1.4.1.
If general API info is in the same file as operations, then the @description tag of operations will also get appended to the general info. I think this was introduced after adding support for multiline @description in the general API.
Example
Code in the same file:
After
swag init
, it will generate this description for the general API:And the operation's description itself will be correct:
The text was updated successfully, but these errors were encountered: