Skip to content

Commit 5f8a947

Browse files
committed
streamline VulnerabilityReference
see #154 (comment) fixes #154 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 4159dee commit 5f8a947

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
@@ -3345,13 +3345,13 @@ limitations under the License.
33453345
</xs:annotation>
33463346
<xs:complexType>
33473347
<xs:sequence minOccurs="1" maxOccurs="1">
3348-
<xs:element name="id" type="xs:normalizedString" minOccurs="0" maxOccurs="1">
3348+
<xs:element name="id" type="xs:normalizedString" minOccurs="1" maxOccurs="1">
33493349
<xs:annotation>
33503350
<xs:documentation>The identifier that uniquely identifies the vulnerability. For example:
33513351
CVE-2021-39182, GHSA-35m5-8cvj-8783, and SNYK-PYTHON-ENROCRYPT-1912876.</xs:documentation>
33523352
</xs:annotation>
33533353
</xs:element>
3354-
<xs:element name="source" type="bom:vulnerabilitySourceType" minOccurs="0" maxOccurs="1">
3354+
<xs:element name="source" type="bom:vulnerabilitySourceType" minOccurs="1" maxOccurs="1">
33553355
<xs:annotation>
33563356
<xs:documentation>The source that published the vulnerability.</xs:documentation>
33573357
</xs:annotation>

0 commit comments

Comments
 (0)