Open
Description
Is your feature request related to a problem? Please describe.
Currently I specify data type by structure name. Like this
// @Failure 404 {object} api.ErrorResponse
But in my IDE (VS Code) I cannot click through that into structure definition.
Describe the solution you'd like
Go support Doc link, when you wrap structure/function etc into [
and ]
. See https://tip.golang.org/doc/comment#doclinks
It would be nice if Swag would support that format too, so I could write.
// @Failure 404 {object} [api.ErrorResponse]
Then the text becomes clickable and I can just go to definition directly from Swag comment.
Currently if I try that, I get error
ParseComment error in file my_file.go :cannot find type definition: [api.ErrorResponse]
Metadata
Metadata
Assignees
Labels
No labels