Skip to content

Commit

Permalink
fix(xml): requirement descriptions should be unbounded (#533)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
hakandilek and jkowalleck authored Nov 7, 2024
1 parent 136479a commit 8ded79c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schema/bom-1.6.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -8144,7 +8144,7 @@ limitations under the License.
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Expand Down
5 changes: 5 additions & 0 deletions tools/src/test/resources/1.6/valid-standard-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"bom-ref": "requirement-1.1",
"identifier": "v1.1",
"title": "Title here",
"text": "Text here",
"descriptions": [
"Requirement is described here",
"and here"
],
"parent": "requirement-1"
},
{
Expand Down
5 changes: 5 additions & 0 deletions tools/src/test/resources/1.6/valid-standard-1.6.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ definitions {
bom_ref: "requirement-1.1"
identifier: "v1.1"
title: "Title here"
text: "Text here"
descriptions: [
"Requirement is described here"
"and here"
]
parent: "requirement-1"
},
{
Expand Down
5 changes: 5 additions & 0 deletions tools/src/test/resources/1.6/valid-standard-1.6.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<requirement bom-ref="requirement-1.1">
<identifier>v1.1</identifier>
<title>Title here</title>
<text>Text here</text>
<descriptions>
<description>Requirement is described here</description>
<description>and here</description>
</descriptions>
<parent>requirement-1</parent>
</requirement>
<requirement bom-ref="requirement-1.1.1">
Expand Down

0 comments on commit 8ded79c

Please sign in to comment.