Skip to content

Commit 0416cce

Browse files
committed
Change 5.0 to 5.1 all over
1 parent 060aedc commit 0416cce

File tree

14 files changed

+411
-190
lines changed

14 files changed

+411
-190
lines changed

.github/workflows/validate-schema.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- master
1111
env:
1212
CVE_SCHEMA_DIR: schema/v5.0
13-
CVE_SCHEMA_FILENAME: CVE_JSON_5.0_schema.json
13+
CVE_SCHEMA_FILENAME: CVE_JSON_5.1_schema.json
1414
jobs:
1515
verify-json-validation:
1616
runs-on: ubuntu-latest
@@ -28,9 +28,9 @@ jobs:
2828
sed 's/file\://g' "${CVE_SCHEMA_DIR}/${CVE_SCHEMA_FILENAME}" > "${CVE_SCHEMA_DIR}/cve-schema.json"
2929
- name: Bundle schema for AJV
3030
run: |
31-
node "${CVE_SCHEMA_DIR}/support/schema2markmap/schema-bundle.js" "${CVE_SCHEMA_DIR}/cve-schema.json" > "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.0_bundled.json"
31+
node "${CVE_SCHEMA_DIR}/support/schema2markmap/schema-bundle.js" "${CVE_SCHEMA_DIR}/cve-schema.json" > "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.1_bundled.json"
3232
- name: Validate JSON schema
3333
run: |
34-
ajv compile -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.0_bundled.json"
35-
ajv validate -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.0_bundled.json" -d "${CVE_SCHEMA_DIR}/docs/full-record-basic-example.json"
36-
ajv validate -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.0_bundled.json" -d "${CVE_SCHEMA_DIR}/docs/full-record-advanced-example.json"
34+
ajv compile -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.1_bundled.json"
35+
ajv validate -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.1_bundled.json" -d "${CVE_SCHEMA_DIR}/docs/full-record-basic-example.json"
36+
ajv validate -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.1_bundled.json" -d "${CVE_SCHEMA_DIR}/docs/full-record-advanced-example.json"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Learn more about the CVE program at: https://www.cve.org/
66

77
This CVE JSON record format is defined using JSON Schema. Learn more about JSON Schema at: https://json-schema.org/ .
88

9-
The latest version of the record format is 5.0. It is specified in the JSON schema at https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/CVE_JSON_5.0_schema.json
9+
The latest version of the record format is 5.0. It is specified in the JSON schema at https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/CVE_JSON_5.1_schema.json
1010

11-
A single schema file with bundled dependencies is at https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/docs/CVE_JSON_5.0_bundled.json
11+
A single schema file with bundled dependencies is at https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/docs/CVE_JSON_5.1_bundled.json
1212

1313
Documentation about this format is available at https://cveproject.github.io/cve-schema/schema/v5.0/docs/
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://cveproject.github.io/cve-schema/schema/v5.0/docs/CVE_JSON_5.0_bundled.json",
3+
"$id": "https://cveproject.github.io/cve-schema/schema/v5.0/docs/CVE_JSON_5.1_bundled.json",
44
"title": "CVE JSON record format",
55
"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/).",
66
"definitions": {
@@ -364,7 +364,7 @@
364364
"dataVersion": {
365365
"description": "The version of the schema being used. Used to support multiple versions of this format.",
366366
"type": "string",
367-
"enum": ["5.0"]
367+
"enum": ["5.1"]
368368
},
369369
"cveMetadataPublished": {
370370
"description": "This is meta data about the CVE ID such as the CVE ID, who requested it, who assigned it, when it was requested, the current state (PUBLISHED, REJECTED, etc.) and so on. These fields are controlled by the CVE Services.",

0 commit comments

Comments
 (0)