ari icon indicating copy to clipboard operation
ari copied to clipboard

Protobuf defnitions for *Request structs

Open blaggacao opened this issue 3 years ago • 1 comments

I want to build the following protobuf:

syntax = "proto3";

package vicigo.dialer.commands;

option go_package = "commands";

import "google/protobuf/timestamp.proto";
import "github.com/CyCoreSystems/ari/ari.proto"; // here, I'd like to have all request structs available.

message Originate {
  asterisk.ari.OriginateRequest req = 1; // here is how I would like to use it.

  string agent_load_balance_strategy = 2;
  ...
}

Would that be possible / a PR accepted?

blaggacao avatar Nov 07 '20 21:11 blaggacao

Makes sense. I've started several times converting all the basic structs to protobuf, but I never end up liking it. The code generator just needs to be extended to do this.

PRs welcome. :)

Ulexus avatar Jan 07 '22 03:01 Ulexus