Skip to content

Commit 1b0d551

Browse files
committed
Bug fixing upper and lower bounds for requirements and capabilities
1 parent bd4f938 commit 1b0d551

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ToscaDesigner/Generated TOSCA files/MyrtusCameraFeed.tosca

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ node_types:
1717
- faceDetectionService:
1818
capability: Endpoint
1919
relationship: connectsTo
20-
occurrences: [1, ]
20+
occurrences: [1, 1]
2121
capabilities:
2222
CameraFeed.WebService:
23-
occurrences: [0, ]
23+
occurrences: [0, -1]
2424
type: tosca.capabilities.Endpoint

ToscaDesigner/src/main/resources/fr/softeam/templates/TNodeType.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ node_types:
1616
- {{../name}}:
1717
capability: {{getProperty ../this "capability"}}
1818
relationship: {{getProperty ../this "relationshipType"}}
19-
occurrences: [{{getProperty ../this "lowerBound"}}, {{getProperty ../this "../upperBound"}}]
19+
occurrences: [{{getProperty ../this "lowerBound"}}, {{getProperty ../this "upperBound"}}]
2020
{{/eq}}{{/extension}}{{/each}}{{/eq}}{{/extension}}{{/each}}
2121
{{#unless (noStereotypeApplications this "TCapabilityDefinitionsType")}}capabilities:{{/unless}}
2222
{{#each ownedElement}}{{#extension}}{{#eq name "TCapabilityDefinitionsType"}}{{#each ../ownedElement}}{{#extension}}{{#eq name "TCapabilityDefinition"}}
2323
{{../name}}:
24-
occurrences: [{{getProperty ../this "lowerBound"}}, {{getProperty ../this "../upperBound"}}]
24+
occurrences: [{{getProperty ../this "lowerBound"}}, {{getProperty ../this "upperBound"}}]
2525
type: tosca.capabilities.Endpoint
2626
{{/eq}}{{/extension}}{{/each}}{{/eq}}{{/extension}}{{/each}}

0 commit comments

Comments
 (0)