Skip to content

Commit

Permalink
fix: 修复swagger文档中的枚举命名
Browse files Browse the repository at this point in the history
  • Loading branch information
zodial committed May 16, 2023
1 parent da42461 commit 329a19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/commands/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ func enumToMessage(pge string, enum parser.Enum) (string, *openapi.Schema) {
for _, opt := range enum.Opt {
attr := &openapi.Schema{
Description: "enum|" + getTitle(opt.Doc),
Type: "number",
Format: "uint",
Type: opt.Name,
Format: "number",
}
properties[fmt.Sprint(opt.Num)] = attr
}
Expand Down

0 comments on commit 329a19b

Please sign in to comment.