Skip to content

Commit

Permalink
change enum type to numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Aug 15, 2024
1 parent 76fc282 commit 84e89d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ func parseJSONType(tc typeContainer) string {
return "object"

case descriptor.FieldDescriptorProto_TYPE_ENUM:
return "string"
return "numeric"

case descriptor.FieldDescriptorProto_TYPE_UINT32,
descriptor.FieldDescriptorProto_TYPE_DOUBLE,
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gendoc

// VERSION is the version of protoc-gen-doc being used.
const VERSION = "1.5.1"
const VERSION = "1.5.2"

0 comments on commit 84e89d0

Please sign in to comment.