Skip to content

Commit 1b0d640

Browse files
fixed schema errors causing CI validation test errors and warnings
1 parent 76a8bb2 commit 1b0d640

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

schema/v5.0/CVE_JSON_5.0_schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"$id": "https://cve.org/cve/record/v5_00/",
4-
"type": "object",
54
"title": "CVE JSON record format",
65
"description": "cve-schema specifies the CVE JSON record format. This is the blueprint for a rich set of JSON data that can be submitted by CVE Numbering Authorities (CNAs) and Authorized Data Publishers (ADPs) to describe a CVE Record. Some examples of CVE Record data include CVE ID number, affected product(s), affected version(s), and public references. While those specific items are required when assigning a CVE, there are many other optional data in the schema that can be used to enrich CVE Records for community benefit. Learn more about the CVE program at [the official website](https://cve.mitre.org). This CVE JSON record format is defined using JSON Schema. Learn more about JSON Schema [here](https://json-schema.org/).",
76
"definitions": {
@@ -738,7 +737,7 @@
738737
"description": "A description with lang set to an English language (en, en_US, en_UK, and so on).",
739738
"properties": {"lang": {"$ref": "#/definitions/englishLanguage"}},
740739
"required": ["lang"],
741-
"additionalProperties": false
740+
"$comment": "Cannot use additionalProperties: false here, as this prevents the other properties used by /definitions/description."
742741
},
743742
"descriptions": {
744743
"type": "array",
@@ -1150,6 +1149,7 @@
11501149
{
11511150
"title": "Published",
11521151
"description": "When a CNA populates the data associated with a CVE ID as a CVE Record, the state of the CVE Record is Published.",
1152+
"type": "object",
11531153
"properties": {
11541154
"dataType": {
11551155
"$ref": "#/definitions/dataType"
@@ -1187,6 +1187,7 @@
11871187
{
11881188
"title": "Rejected",
11891189
"description": "If the CVE ID and associated CVE Record should no longer be used, the CVE Record is placed in the Rejected state. A Rejected CVE Record remains on the CVE List so that users can know when it is invalid.",
1190+
"type": "object",
11901191
"properties": {
11911192
"dataType": {
11921193
"$ref": "#/definitions/dataType"

0 commit comments

Comments
 (0)