Skip to content

Commit

Permalink
fix(grpc-transcode): ienum_as_name to enum_as_name (#3352)
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq authored Jan 25, 2021
1 parent e02baeb commit 95a04d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apisix/plugins/grpc-transcode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ local pb_option_def = {
},
{ description = "int64 as result",
type = "string",
enum = {"ienum_as_name", "enum_as_value"},
enum = {"enum_as_name", "enum_as_value"},
},
{ description ="default values option",
type = "string",
Expand Down
2 changes: 1 addition & 1 deletion t/plugin/grpc-transcode.t
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ passed
"proto_id": "1",
"service": "helloworld.Greeter",
"method": "Plus",
"pb_option":["int64_as_string"]
"pb_option":["int64_as_string", "enum_as_name"]
}
},
"upstream": {
Expand Down

0 comments on commit 95a04d2

Please sign in to comment.