-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Please consider the following .proto file:
package package.rpc.asks;
import "package/actions/asks.proto";
service Ask {
rpc GetAskSnapshot(package.actions.asks.RequestAskSnapshot) returns (package.actions.asks.AskSnapshot) { }
}
I would expect this to generate a Ruby file
module Package
module Rpc
module Asks
class AskService < Twirp::Service
package 'superlist.rpc.asks'
service 'Ask'
rpc :GetAskSnapshot, Package::Actions::Asks::RequestAskSnapshot, Package::Actions::Asks::AskSnapshot, :ruby_method => :get_ask_snapshot
endhowever, it drops the package name for the parameter and generates
module Package
module Rpc
module Asks
class AskService < Twirp::Service
package 'superlist.rpc.asks'
service 'Ask'
rpc :GetAskSnapshot, RequestAskSnapshot, AskSnapshot, :ruby_method => :get_ask_snapshot
endwhich results in an error when trying to import the service file. The RequestAskSnapshot is expected as Package::Rpc::Asks::AskService::RequestAskSnapshot which doesn't exists (as it's supposed to be Package::Actions::Asks::RequestAskSnapshot).
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels