Skip to content

Commit 2003555

Browse files
Merge pull request #251 from jkowalleck/v1.5-dev-resourceReferenceChoice-ref-clarifications
V1.5 dev resourceReferenceChoice ref clarifications
2 parents 4159dee + 864d4f4 commit 2003555

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

schema/bom-1.5.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3645,7 +3645,10 @@
36453645
"ref": {
36463646
"title": "BOM Reference",
36473647
"description": "References an object by its bom-ref attribute",
3648-
"$ref": "#/definitions/refType"
3648+
"anyOf": [
3649+
{"$ref": "#/definitions/refLinkType"},
3650+
{"$ref": "#/definitions/bomLinkElementType"}
3651+
]
36493652
},
36503653
"externalReference": {
36513654
"title": "External reference",

schema/bom-1.5.xsd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4356,12 +4356,15 @@ limitations under the License.
43564356
<xs:complexType name="resourceReferenceType">
43574357
<xs:sequence>
43584358
<xs:choice>
4359-
<xs:element name="ref" type="bom:refType" minOccurs="1" maxOccurs="1">
4359+
<xs:element name="ref" minOccurs="1" maxOccurs="1">
43604360
<xs:annotation>
43614361
<xs:documentation>
43624362
References an object by its bom-ref attribute
43634363
</xs:documentation>
43644364
</xs:annotation>
4365+
<xs:simpleType>
4366+
<xs:union memberTypes="bom:refLinkType bom:bomLinkElementType"/>
4367+
</xs:simpleType>
43654368
</xs:element>
43664369
<xs:element name="externalReference" type="bom:externalReference" minOccurs="1" maxOccurs="1">
43674370
<xs:annotation>

0 commit comments

Comments
 (0)