Skip to content

Commit

Permalink
chg: [website] Improved JSON schemas for the Bundles and the Comments…
Browse files Browse the repository at this point in the history
… by setting a headerTemplate for the items in arrays.
  • Loading branch information
cedricbonhomme committed Oct 4, 2024
1 parent 15a10c3 commit 9988c90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"description": {
"type": "string",
"format": "markdown",
"title": "Description of the bundle"
"title": "Description of the bundle."
},
"description_format": {
"type": "string",
Expand All @@ -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.)."
Expand All @@ -73,6 +74,7 @@
"meta": {
"type": "array",
"items": {
"headerTemplate": "Object {{i1}}",
"type": "object",
"description": "Meta fields"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"related_vulnerabilities": {
"type": "array",
"items": {
"headerTemplate": "Vulnerability {{i1}}",
"type": "string",
"description": "Vulnerability reference (CVE ID, GHSA-ID, PYSEC ID, etc.)."
},
Expand All @@ -77,6 +78,7 @@
"meta": {
"type": "array",
"items": {
"headerTemplate": "Object {{i1}}",
"type": "object",
"description": "Meta fields"
},
Expand Down

0 comments on commit 9988c90

Please sign in to comment.