Skip to content

枚举的注释生成了但没有显示 #2136

@easygoto

Description

@easygoto

Describe the bug

上面两张图是官方默认生成的,枚举类型的注释没有显示。
下面两张图是我自己在 docs.go 中加了一段文字(非程序生成),枚举类型的注释可以显示

期望是下面两张图的结果,期待回复。

Screenshots

文档

Image

结果

Image

但是如果加了其他的键,就可以显示出来

文档

Image

结果

Image

swag version
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.1
github.com/swaggo/swag v1.16.6

go version
go version go1.24.11 windows/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions