Open EAS-Rhys opened 10 months ago
debug it.
debug it.
I've tried, or i wouldn't have raised it as a bug. If there is something you think i'm missing can you at least give me a pointer?
You have to check your swag version by cmd swag --version
.
The swag version means the version of the swag tool you are using, other than the dependent package version you have imported.
I have also tried model you gave above with the newest swag tool. It work well.
Same issue
use swaggertype: "string"
AvailableDatetime sql.NullTime `json:"available_datetime" swaggertype: "string"`
Describe the bug When executing:
swag init --md ./docs --parseInternal --parseDependency --parseDepth 2
Receiving error:ParseComment error in file /Users/morgan/leadgen/data-ms/routes/content.go :cannot find type definition: sql.NullTime
To Reproduce Steps to reproduce the behavior: Execute
swag init --md ./docs --parseInternal --parseDependency --parseDepth 2
with a gorm model in your swagger comment spec.Example:
Gorm Model:
Swagger Comment:
Expected behavior Swagger docs to be generated successfully
Your swag version
Your go version e.g. 1.21.5
Additional info: I have tried the solution specified in https://github.com/swaggo/swag/issues/1228 with .swaggo file in the root of the project but am still getting this issue.
Gorm version: gorm.io/gorm v1.25.5