Describe the bug
I am getting nil pointer dereference error on running swag init -g ./cmd/main.go -v3.1. Only getting this error on v2. It is working fine for swagger 2.0 (swag init -g ./cmd/main.go)
Expected behavior
Docs files should be generated without any errors
Your swag version
v2.0.0
Your go version
1.20.4
Desktop (please complete the following information):
OS: Ubuntu
Version: 22.04
Additional context
This is the error I get (with some lines before for context):
Describe the bug I am getting nil pointer dereference error on running
swag init -g ./cmd/main.go -v3.1
. Only getting this error on v2. It is working fine for swagger 2.0 (swag init -g ./cmd/main.go
)Expected behavior Docs files should be generated without any errors
Your swag version v2.0.0
Your go version 1.20.4
Desktop (please complete the following information):
Additional context This is the error I get (with some lines before for context):
I have gone through issue #1590 and I don't have any object referenced as type aliases