From 9988c904043542ca065a20136ab38654c98bd63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Fri, 4 Oct 2024 08:48:52 +0200 Subject: [PATCH] chg: [website] Improved JSON schemas for the Bundles and the Comments by setting a headerTemplate for the items in arrays. --- .../web/static/schemas/CIRCL/Security_Advisory_Bundle.json | 4 +++- .../web/static/schemas/CIRCL/Security_Advisory_Comment.json | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/website/web/static/schemas/CIRCL/Security_Advisory_Bundle.json b/website/web/static/schemas/CIRCL/Security_Advisory_Bundle.json index d643000a..09f09a87 100644 --- a/website/web/static/schemas/CIRCL/Security_Advisory_Bundle.json +++ b/website/web/static/schemas/CIRCL/Security_Advisory_Bundle.json @@ -51,7 +51,7 @@ "description": { "type": "string", "format": "markdown", - "title": "Description of the bundle" + "title": "Description of the bundle." }, "description_format": { "type": "string", @@ -63,6 +63,7 @@ "type": "array", "minItems": 1, "items": { + "headerTemplate": "Vulnerability {{i1}}", "type": "string", "minLength": 1, "description": "Vulnerability reference (CVE ID, GHSA-ID, PYSEC ID, etc.)." @@ -73,6 +74,7 @@ "meta": { "type": "array", "items": { + "headerTemplate": "Object {{i1}}", "type": "object", "description": "Meta fields" }, diff --git a/website/web/static/schemas/CIRCL/Security_Advisory_Comment.json b/website/web/static/schemas/CIRCL/Security_Advisory_Comment.json index 32089533..f059ed4d 100644 --- a/website/web/static/schemas/CIRCL/Security_Advisory_Comment.json +++ b/website/web/static/schemas/CIRCL/Security_Advisory_Comment.json @@ -69,6 +69,7 @@ "related_vulnerabilities": { "type": "array", "items": { + "headerTemplate": "Vulnerability {{i1}}", "type": "string", "description": "Vulnerability reference (CVE ID, GHSA-ID, PYSEC ID, etc.)." }, @@ -77,6 +78,7 @@ "meta": { "type": "array", "items": { + "headerTemplate": "Object {{i1}}", "type": "object", "description": "Meta fields" },