You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current draft of the TOSCA v2.0 spec states the following with respect to node and relationship indices:
Note that both the indexes can either be a non-negative integer, the keyword ALL, or missing. If it is a non-negative integer, 0 represents the first index and so on incrementally. If the index is missing, the semantic meaning is that the first index (index with value 0) is used. If it is the keyword ALL, then we return the result for all possible indices (further resolved separately) as a list. If the there are multiple ALL keywords in the definition, then all the results shall be merged into a single list.
I propose to change the semantics such that if the index is missing, the meaning is that all the nodes or all the relationships are specified. This feels more natural and less arbitrary, and is more consistent with the "entity referral" interpretation of TOSCA Path. It is also more consistent with the use of lists in programming languages, where the name of a list without an index refers to the entire list rather than to the first element in the list.
The text was updated successfully, but these errors were encountered:
The current draft of the TOSCA v2.0 spec states the following with respect to node and relationship indices:
I propose to change the semantics such that if the index is missing, the meaning is that all the nodes or all the relationships are specified. This feels more natural and less arbitrary, and is more consistent with the "entity referral" interpretation of TOSCA Path. It is also more consistent with the use of lists in programming languages, where the name of a list without an index refers to the entire list rather than to the first element in the list.
The text was updated successfully, but these errors were encountered: