Open mciricean opened 1 month ago
Describe the bug
Noticing 2 Warnings for dependency modules when generating swagger docs
build/lib/swag init -g cmd/app_cmd.go --md swagger/markdown/ -o swagger/docs --parseDependency
2024/06/05 10:41:39 Generate swagger docs.... 2024/06/05 10:41:39 Generate general API Info, search dir:./ 2024/06/05 10:41:42 warning: failed to evaluate const maxUnixSocketPathSize at /home/user/Apps/go/pkg/mod/github.com/docker/go-connections@v0.5.0/sockets/sockets_unix.go:14:7, reflect: call of reflect.Value.Len on zero Value 2024/06/05 10:41:43 warning: failed to evaluate const northPoleLat at /home/user/Apps/go/pkg/mod/github.com/golang/geo@v0.0.0-20230421003525-6adc56603217/s2/latlng.go:26:2, runtime error: invalid memory address or nil pointer dereference 2024/06/05 10:41:43 Generating model.Comment 2024/06/05 10:41:43 Generating model.Activity
To Reproduce Steps to reproduce the behavior: 1.run cmd above
Expected behavior no warnings or have a way to exclude those files
Screenshots If applicable, add screenshots to help explain your problem.
Your swag version 1.6.3
Your go version 1.19.13
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
Describe the bug
Noticing 2 Warnings for dependency modules when generating swagger docs
build/lib/swag init -g cmd/app_cmd.go --md swagger/markdown/ -o swagger/docs --parseDependency
To Reproduce Steps to reproduce the behavior: 1.run cmd above
Expected behavior no warnings or have a way to exclude those files
Screenshots If applicable, add screenshots to help explain your problem.
Your swag version 1.6.3
Your go version 1.19.13
Desktop (please complete the following information):
Additional context Add any other context about the problem here.