Skip to content

Commit 1085486

Browse files
Merge pull request #467 from secvisogram/feat/455-csaf2.1-update-csaf2_1-strict
feat(CSAF2.1): #455 update csaf 2.1. strict schema
2 parents 7cfad8f + 9cac7db commit 1085486

File tree

1 file changed

+24
-12
lines changed
  • csaf_2_1/schemaTests/csaf_2_1_strict

1 file changed

+24
-12
lines changed

csaf_2_1/schemaTests/csaf_2_1_strict/schema.js

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
// created with: python ./csaf/csaf_2.1/test/generate_strict_schema.py ./csaf/csaf_2.1/json_schema/csaf.json > ./csaf_2_1/schemaTests/csaf_2_1_strict/schema.json
12
export default {
3+
$id: 'https://docs.oasis-open.org/csaf/csaf/v2.1/schema/csaf.json?strict',
4+
$schema: 'https://docs.oasis-open.org/csaf/csaf/v2.1/schema/meta.json',
5+
additionalProperties: false,
6+
description:
7+
'Representation of security advisory information as a JSON document.',
28
$defs: {
39
acknowledgments_t: {
410
description: 'Contains a list of acknowledgment elements.',
@@ -131,7 +137,7 @@ export default {
131137
properties: {
132138
name: {
133139
description:
134-
'The value should be the product\u2019s full canonical name, including version number and other attributes, as it would be used in a human-friendly document.',
140+
'The value should be the product\u00e2\u20ac\u2122s full canonical name, including version number and other attributes, as it would be used in a human-friendly document.',
135141
examples: [
136142
'Cisco AnyConnect Secure Mobility Client 2.3.185',
137143
'Microsoft Host Integration Server 2006 Service Pack 1',
@@ -500,11 +506,6 @@ export default {
500506
type: 'string',
501507
},
502508
},
503-
$id: 'https://docs.oasis-open.org/csaf/csaf/v2.1/schema/csaf.json?strict',
504-
$schema: 'https://docs.oasis-open.org/csaf/csaf/v2.1/schema/meta.json',
505-
additionalProperties: false,
506-
description:
507-
'Representation of security advisory information as a JSON document.',
508509
properties: {
509510
$schema: {
510511
description:
@@ -528,7 +529,7 @@ export default {
528529
aggregate_severity: {
529530
additionalProperties: false,
530531
description:
531-
"Is a vehicle that is provided by the document producer to convey the urgency and criticality with which the one or more vulnerabilities reported should be addressed. It is a document-level metric and applied to the document as a whole \u2014 not any specific vulnerability. The range of values in this field is defined according to the document producer's policies and procedures.",
532+
"Is a vehicle that is provided by the document producer to convey the urgency and criticality with which the one or more vulnerabilities reported should be addressed. It is a document-level metric and applied to the document as a whole \u00e2\u20ac\u201d not any specific vulnerability. The range of values in this field is defined according to the document producer's policies and procedures.",
532533
properties: {
533534
namespace: {
534535
description: 'Points to the namespace so referenced.',
@@ -651,7 +652,7 @@ export default {
651652
},
652653
},
653654
required: ['tlp'],
654-
title: 'Rules for sharing document',
655+
title: 'Rules for document sharing',
655656
type: 'object',
656657
},
657658
lang: {
@@ -1316,6 +1317,7 @@ export default {
13161317
properties: {
13171318
cvss_v2: {
13181319
$ref: 'https://www.first.org/cvss/cvss-v2.0.json',
1320+
title: 'CVSS v2',
13191321
},
13201322
cvss_v3: {
13211323
oneOf: [
@@ -1326,9 +1328,11 @@ export default {
13261328
$ref: 'https://www.first.org/cvss/cvss-v3.1.json',
13271329
},
13281330
],
1331+
title: 'CVSS v3',
13291332
},
13301333
cvss_v4: {
1331-
$ref: 'https://www.first.org/cvss/cvss-v4.0.json',
1334+
$ref: 'https://www.first.org/cvss/cvss-v4.0.1.json',
1335+
title: 'CVSS v4',
13321336
},
13331337
epss: {
13341338
additionalProperties: false,
@@ -1360,8 +1364,16 @@ export default {
13601364
title: 'EPSS',
13611365
type: 'object',
13621366
},
1363-
ssvc_v1: {
1364-
$ref: 'https://certcc.github.io/SSVC/data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json',
1367+
qualitative_severity_rating: {
1368+
description:
1369+
'Contains an assessment of the severity of the vulnerability regarding the products on a qualitative scale.',
1370+
enum: ['critical', 'high', 'low', 'medium', 'none'],
1371+
title: 'Qualitative Severity Rating',
1372+
type: 'string',
1373+
},
1374+
ssvc_v2: {
1375+
$ref: 'https://certcc.github.io/SSVC/data/schema/v2/Decision_Point_Value_Selection-2-0-0.schema.json',
1376+
title: 'SSVC v2',
13651377
},
13661378
},
13671379
title: 'Content',
@@ -1520,7 +1532,7 @@ export default {
15201532
restart_required: {
15211533
additionalProperties: false,
15221534
description:
1523-
'Provides information on category of restart is required by this remediation to become effective.',
1535+
'Provides information on the category of restart required by this remediation to become effective.',
15241536
properties: {
15251537
category: {
15261538
description:

0 commit comments

Comments
 (0)