-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't working properly with generic instantiation of slice #1346
Labels
Comments
It can be fixed by adding |
sdghchj
pushed a commit
that referenced
this issue
Oct 14, 2022
Signed-off-by: sdghchj <[email protected]>
sdghchj
added a commit
that referenced
this issue
Oct 15, 2022
ubogdan
pushed a commit
that referenced
this issue
Oct 15, 2022
* fix issue #1346 about generics Signed-off-by: sdghchj <[email protected]> * fix issue #1346 about generics Signed-off-by: sdghchj <[email protected]> Co-authored-by: sdghchj <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: