Closed philippemerle closed 2 years ago
How do you understand capability "occurrences", then? According to the TOSCA 1.3 spec the default there is [ 1, UNBOUNDED ], but what does that mean? You can read my interpretation here. Essentially, I understand it to refer to the number of incoming relationships. So a minimum of 1 would mean you should get an error if no relationship comes in. And a maximum of 1 means there should be no more than 1 incoming relationship. Thus I actually interpret the default to be [ 0, UNBOUNDED ], because otherwise there would be errors all over the place.
The quirk capabilities.occurrences.permissive introduced into release v0.20.0 seems to address this problem. Thank @tliron.
Puccuni 0.18.0 signals no problem on the following template:
But if one uncomments
occurrences: [1, UNBOUNDED]
then Puccini signals a problem:This seems that there are two totally different behaviours depending on the absence or presence of the
occurrences
keyname. Moreover TOSCA 1.3 does not specify that each capability MUST BE the target of a relationship.