Skip to content

Commit 587cafb

Browse files
feat: change ssvc in inputSchema from property to optionalProperty
1 parent 6963b41 commit 587cafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csaf_2_1/mandatoryTests/mandatoryTest_6_1_48.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const inputSchema = /** @type {const} */ ({
2222
optionalProperties: {
2323
content: {
2424
additionalProperties: true,
25-
properties: {
25+
optionalProperties: {
2626
ssvc_v1: {
2727
additionalProperties: true,
2828
optionalProperties: {
@@ -77,7 +77,7 @@ export function mandatoryTest_6_1_48(doc) {
7777

7878
doc.vulnerabilities.forEach((vulnerability, vulnerabilityIndex) => {
7979
vulnerability.metrics?.forEach((metric, metricIndex) => {
80-
const selections = metric.content?.ssvc_v1.selections
80+
const selections = metric.content?.ssvc_v1?.selections
8181
const selectionsWithRegisteredNamespace = selections?.filter(
8282
(s) =>
8383
s.namespace !== undefined &&

0 commit comments

Comments
 (0)