Skip to content

Commit 61780bb

Browse files
Merge pull request #253 from jkowalleck/v1.5-dev_fix_issue154
streamline VulnerabilityReference
2 parents 503fbff + 5f8a947 commit 61780bb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

schema/bom-1.5.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,9 @@ message ProofOfConcept {
818818

819819
message VulnerabilityReference {
820820
// An identifier that uniquely identifies the vulnerability.
821-
optional string id = 1;
821+
string id = 1;
822822
// The source that published the vulnerability.
823-
optional Source source = 2;
823+
Source source = 2;
824824
}
825825

826826
message VulnerabilityRating {

schema/bom-1.5.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3361,13 +3361,13 @@ limitations under the License.
33613361
</xs:annotation>
33623362
<xs:complexType>
33633363
<xs:sequence minOccurs="1" maxOccurs="1">
3364-
<xs:element name="id" type="xs:normalizedString" minOccurs="0" maxOccurs="1">
3364+
<xs:element name="id" type="xs:normalizedString" minOccurs="1" maxOccurs="1">
33653365
<xs:annotation>
33663366
<xs:documentation>The identifier that uniquely identifies the vulnerability. For example:
33673367
CVE-2021-39182, GHSA-35m5-8cvj-8783, and SNYK-PYTHON-ENROCRYPT-1912876.</xs:documentation>
33683368
</xs:annotation>
33693369
</xs:element>
3370-
<xs:element name="source" type="bom:vulnerabilitySourceType" minOccurs="0" maxOccurs="1">
3370+
<xs:element name="source" type="bom:vulnerabilitySourceType" minOccurs="1" maxOccurs="1">
33713371
<xs:annotation>
33723372
<xs:documentation>The source that published the vulnerability.</xs:documentation>
33733373
</xs:annotation>

0 commit comments

Comments
 (0)