On Fri, Oct 04, 2013 at 08:01:45AM +0400, Vasiliy Tolstov wrote: > I have a question about : > https://tools.ietf.org/html/draft-pfaff-ovsdb-proto-04, Why Max > integer or string? Why no use -1 for max for example? > In case of integer or sting this creates problems with automatic > encoding/decoding this json type =(
The format is flexible and I didn't have a reason not to use it. > <type> > The type of a database column. Either an <atomic-type> or a JSON > object that describes the type of a database column, with the > following members: > > > "key": <base-type> required > "value": <base-type> optional > "min": <integer> optional > "max": <integer> or "unlimited" optional > > If "min" or "max" is not specified, each defaults to 1. If "max" > is specified as "unlimited", then there is no specified maximum > number of elements, although the implementation will enforce some > limit. After considering defaults, "min" must be exactly 0 or > exactly 1, "max" must be at least 1, and "max" must be greater > than or equal to "min". _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss