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
I use https://github.com/MarcoWel/gozxing in my code, but its code has invalid argument params : authors used @param comment syntax for methods, also used by swaggo. And swaggo tries to parse it.
// getCharacter Gets the character (or string) corresponding to the passed code in the given table//// @param table the table used// @param code the code of the characterfuncgetCharacter(tableTable, codeint) (string, error)
ParseComment error in file /home/memyselfandi/go/pkg/mod/github.com/!marco!wel/[email protected]/aztec/decoder/decoder.go :missing required param comment parameters "table the table used"
To Reproduce
Steps to reproduce the behavior:
Create a project that uses github.com/MarcoWel/gozxing
This issue comes from the fact you are importing the library in your handlers. Try to define an interface and to provide the implementation at runtime so swag won't try to parse it. 💡
Hello
Describe the bug
I use https://github.com/MarcoWel/gozxing in my code, but its code has invalid argument params : authors used @param comment syntax for methods, also used by swaggo. And swaggo tries to parse it.
To Reproduce
Steps to reproduce the behavior:
github.com/MarcoWel/gozxing
swag init --parseDependency --parseDependencyLevel=2
Expected behavior
Since the error is legit, I would like to skip this error, or totally skip the gozxing library.
I tried using
.swaggo
to skip library, and also some variants of the--exclude
argument.Screenshots
N/A
Your swag version
swag version v1.16.2
Your go version
go version go1.22.6 linux/amd64
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: