[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [tosca] Using in_range on a range
Yes, my parser checks to see if the property value of type ârangeâ is contained inside the range specified by the constraints (i.e. is a subset of â). Philippeâs example passes my validator, and when I change the range property value to
no longer be within the range specified by the constraint, my validator returns an error. For example, here is the output when I change the lower bound of the range values from 1,000 to -1,000: { "range_in_range.yaml": { "range_in_range.yaml": { "topology": { "node_templates": { "node1": { "properties": { "port_range": { "in_range": "<[0, 65535]> not satisfied by <[-1000, 5000]>" } }, "line": 20 } }, "policies": { "policy1": { "properties": { "port_range": { "in_range": "<[0, 65535]> not satisfied by <[-1000, 5000]>" } }, "line": 25 } }, "line": 18 } } } } From: tosca@lists.oasis-open.org <tosca@lists.oasis-open.org>
On Behalf Of Tal Liron Does your TOSCA parser do the right thing? I found out that it was more complex than I expected... you can see the discussion here: |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]