Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: Fixed an issue where gRPC plugins lack support for "optional".
scope: Plugin
type: bugfix
1 change: 1 addition & 0 deletions kong/tools/grpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function _M.new()
protoc_instance:addpath(v)
end
protoc_instance.include_imports = true
protoc_instance.proto3_optional = true

return setmetatable({
protoc_instance = protoc_instance,
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/grpc/targetservice.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ service Bouncer {

message HelloRequest {
string greeting = 1;
bool boolean_test = 2;
optional bool boolean_test = 2;
}

message HelloResponse {
Expand Down
Loading