Skip to content
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

Warnings for dependency modules when generating swagger docs #1819

Open
mciricean opened this issue Jun 5, 2024 · 0 comments
Open

Warnings for dependency modules when generating swagger docs #1819

mciricean opened this issue Jun 5, 2024 · 0 comments

Comments

@mciricean
Copy link

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/[email protected]/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/[email protected]/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):

  • OS: ubuntu 22.04
  • Browser: na
  • Version: na

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant