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 <marco.ted...@gmail.com>wrote: > 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> > </simpleType> > > However I couldn't find equivalent translation in the proto language > definition. I could find defaults and enums, but not number ranges. > > Regards, > > Marco > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.