Re: [protobuf] Numeric range not supported?

2011-06-02 Thread Pherl Liu
We also have another internal thread talking about the restriction support for protobuf. Basically we think the restriction or value validation function of protobuf should be implemented in the upper layer due to various concerns.. On Mon, May 30, 2011 at 6:54 PM, Marco Tedone

Re: [protobuf] Numeric range not supported?

2011-06-02 Thread Wenbo Zhu
On Thu, Jun 2, 2011 at 5:55 PM, Wenbo Zhu wen...@google.com wrote: On Thu, Jun 2, 2011 at 3:41 AM, Pherl Liu liuj...@google.com wrote: We also have another internal thread talking about the restriction support for protobuf. Basically we think the restriction or value validation function of

[protobuf] Numeric range not supported?

2011-05-30 Thread Marco Tedone
Hi all, I'm checking the protobuf language definition and I couldn't find anywhere support for numeric range. In XSD, for instance, one could have: simpleType name=ZeroToTen restriction base=int minInclusive value=0 / maxInclusive value=10 / /restriction