Skip to content

V1.5 dev resourceReferenceChoice ref clarifications #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion schema/bom-1.5.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,10 @@
"ref": {
"title": "BOM Reference",
"description": "References an object by its bom-ref attribute",
"$ref": "#/definitions/refType"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was any string

"anyOf": [
{"$ref": "#/definitions/refLinkType"},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is any string

{"$ref": "#/definitions/bomLinkElementType"}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is any string with iri-reference format and a certain regex/format/pattern for BOM-Link

]
},
"externalReference": {
"title": "External reference",
Expand Down
5 changes: 4 additions & 1 deletion schema/bom-1.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4356,12 +4356,15 @@ limitations under the License.
<xs:complexType name="resourceReferenceType">
<xs:sequence>
<xs:choice>
<xs:element name="ref" type="bom:refType" minOccurs="1" maxOccurs="1">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was any string

<xs:element name="ref" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
References an object by its bom-ref attribute
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:union memberTypes="bom:refLinkType bom:bomLinkElementType"/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is any of:

  • bom:refLinkType: any string
  • bom:bomLinkElementType: anyURI string with a certain pattern/format for BOM-Link

</xs:simpleType>
</xs:element>
<xs:element name="externalReference" type="bom:externalReference" minOccurs="1" maxOccurs="1">
<xs:annotation>
Expand Down