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
Describe the bug \u0026{%!s(token.Pos=222) string %!s(*ast.InterfaceType=\u0026{233 0xc00039a300 false})}
shows as the description to an array type of map.
To Reproduce
Steps to reproduce the behavior:
create a datatype
type DataDto struct {
Data []map[string]interface{} `json:"data"` //The Individual Records
Count int `json:"count"`
Average float64 `json:"averageScore,string"`
}
set it ass sucess type // @Success 200 {object} handler.DataDto
Describe the bug
\u0026{%!s(token.Pos=222) string %!s(*ast.InterfaceType=\u0026{233 0xc00039a300 false})}
shows as the description to an array type of map.
To Reproduce
Steps to reproduce the behavior:
// @Success 200 {object} handler.DataDto
swag init
Expected behavior
should be in this case
"items":{"type":"object"}
Screenshots
If applicable, add screenshots to help explain your problem.
Your swag version
e.g. 1.6.3
Your go version
e.g. 1.13.4
Desktop (please complete the following information):
Additional context
have tried []map[string]string as well and the type is different but still wrong.
The text was updated successfully, but these errors were encountered: