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
It can be fixed by adding swaggertype:"array,string" as a tag to structure field. But is there a way to implement it automatically by parsing generic instantiation type parameter?
Describe the bug
Don't working properly with parametric generics
panic: interface conversion: ast.Expr is *ast.ArrayType, not *ast.StructType
To Reproduce
Steps to reproduce the behavior:
main.go
with the next content (listed below)Content:
pgjson.go
main.go
Expected behavior
Should generate docs correctly without any errors
Screenshots
Your swag version
latest (1.8.6)
Your go version
go version go1.18 windows/amd64
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: