Skip to content

Commit 8ded79c

Browse files
fix(xml): requirement descriptions should be unbounded (#533)
fixes #528 where occurrences of `definitions.standards.requirements.descriptions` should be unbounded --------- Signed-off-by: Hakan Dilek <[email protected]> Co-authored-by: Jan Kowalleck <[email protected]>
1 parent 136479a commit 8ded79c

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

schema/bom-1.6.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8144,7 +8144,7 @@ limitations under the License.
81448144
</xs:annotation>
81458145
<xs:complexType>
81468146
<xs:sequence>
8147-
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>
8147+
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
81488148
</xs:sequence>
81498149
</xs:complexType>
81508150
</xs:element>

tools/src/test/resources/1.6/valid-standard-1.6.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"bom-ref": "requirement-1.1",
2323
"identifier": "v1.1",
2424
"title": "Title here",
25+
"text": "Text here",
26+
"descriptions": [
27+
"Requirement is described here",
28+
"and here"
29+
],
2530
"parent": "requirement-1"
2631
},
2732
{

tools/src/test/resources/1.6/valid-standard-1.6.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ definitions {
2222
bom_ref: "requirement-1.1"
2323
identifier: "v1.1"
2424
title: "Title here"
25+
text: "Text here"
26+
descriptions: [
27+
"Requirement is described here"
28+
"and here"
29+
]
2530
parent: "requirement-1"
2631
},
2732
{

tools/src/test/resources/1.6/valid-standard-1.6.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
<requirement bom-ref="requirement-1.1">
1616
<identifier>v1.1</identifier>
1717
<title>Title here</title>
18+
<text>Text here</text>
19+
<descriptions>
20+
<description>Requirement is described here</description>
21+
<description>and here</description>
22+
</descriptions>
1823
<parent>requirement-1</parent>
1924
</requirement>
2025
<requirement bom-ref="requirement-1.1.1">

0 commit comments

Comments
 (0)