Closed zhanjiejun closed 6 months ago
Encountering the same issue with Swag 1.16.3 and Go 1.22
Show your whole file content.
I just guess you have not added import xxx/xxx/resp
.
Show your whole file content. I just guess you have not added
import xxx/xxx/resp
.
Thanks ~
It's ok when I add import _ xxx/xxx/resp
.
To Reproduce
swag init error: 2024/03/04 11:04:20 Error parsing type definition 'response.PageResponse-resp_UserPageResponse': rows: cannot find type definition: resp.UserPageResponse 2024/03/04 11:04:20 Error parsing type definition 'response.Response-response_PageResponse-resp_UserPageResponse': data: response.PageResponse-resp_UserPageResponse: rows: cannot fin d type definition: resp.UserPageResponse
Your swag version 1.16.3
Your go version 1.21.6
Additional context But if I put
UserPageResponse
in packageresponse
, it's ok