Skip to content

Commit cccc5ca

Browse files
committed
feat: update json schema
1 parent 7f601f3 commit cccc5ca

2 files changed

Lines changed: 32 additions & 18 deletions

File tree

csaf_2_1/schemaTests/csaf_2_1/schema.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,21 @@ export default {
248248
minLength: 1,
249249
},
250250
},
251-
purl: {
252-
title: 'package URL representation',
253-
description:
254-
'The package URL (purl) attribute refers to a method for reliably identifying and locating software packages external to this specification.',
255-
type: 'string',
256-
format: 'uri',
257-
pattern: '^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*\\/.+',
258-
minLength: 7,
251+
purls: {
252+
title: 'List of package URLs',
253+
description: 'Contains a list of package URLs (purl).',
254+
type: 'array',
255+
minItems: 1,
256+
uniqueItems: true,
257+
items: {
258+
title: 'package URL representation',
259+
description:
260+
'The package URL (purl) attribute refers to a method for reliably identifying and locating software packages external to this specification.',
261+
type: 'string',
262+
format: 'uri',
263+
pattern: '^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*\\/.+',
264+
minLength: 7,
265+
},
259266
},
260267
sbom_urls: {
261268
title: 'List of SBOM URLs',

csaf_2_1/schemaTests/csaf_2_1_strict/schema.js

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default {
131131
properties: {
132132
name: {
133133
description:
134-
'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.',
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.',
135135
examples: [
136136
'Cisco AnyConnect Secure Mobility Client 2.3.185',
137137
'Microsoft Host Integration Server 2006 Service Pack 1',
@@ -243,14 +243,21 @@ export default {
243243
type: 'array',
244244
uniqueItems: true,
245245
},
246-
purl: {
247-
description:
248-
'The package URL (purl) attribute refers to a method for reliably identifying and locating software packages external to this specification.',
249-
format: 'uri',
250-
minLength: 7,
251-
pattern: '^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*\\/.+',
252-
title: 'package URL representation',
253-
type: 'string',
246+
purls: {
247+
description: 'Contains a list of package URLs (purl).',
248+
items: {
249+
description:
250+
'The package URL (purl) attribute refers to a method for reliably identifying and locating software packages external to this specification.',
251+
format: 'uri',
252+
minLength: 7,
253+
pattern: '^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*\\/.+',
254+
title: 'package URL representation',
255+
type: 'string',
256+
},
257+
minItems: 1,
258+
title: 'List of package URLs',
259+
type: 'array',
260+
uniqueItems: true,
254261
},
255262
sbom_urls: {
256263
description:
@@ -519,7 +526,7 @@ export default {
519526
aggregate_severity: {
520527
additionalProperties: false,
521528
description:
522-
"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.",
529+
"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.",
523530
properties: {
524531
namespace: {
525532
description: 'Points to the namespace so referenced.',

0 commit comments

Comments
 (0)