Hello,

How can I specify repeating elements in a thrift spec?

For example if I'm using Google Protocol Buffers, I can do this:

message demoMesssage {
   required string myIdentifier = 1;
   optional string myDatum = 2;
   repeated string myList = 3;
}

In this case, I can have zero or more strings in myList. In the root object (Python, C++, etc) it is specified as an array. How might I represent that message in Thrift-speak?

Cheers,
-Josh

Reply via email to