Skip to content

Commit

Permalink
Change 5.0 to 5.1 all over
Browse files Browse the repository at this point in the history
  • Loading branch information
chandanbn committed Oct 16, 2023
1 parent 060aedc commit 0416cce
Show file tree
Hide file tree
Showing 14 changed files with 411 additions and 190 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/validate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- master
env:
CVE_SCHEMA_DIR: schema/v5.0
CVE_SCHEMA_FILENAME: CVE_JSON_5.0_schema.json
CVE_SCHEMA_FILENAME: CVE_JSON_5.1_schema.json
jobs:
verify-json-validation:
runs-on: ubuntu-latest
Expand All @@ -28,9 +28,9 @@ jobs:
sed 's/file\://g' "${CVE_SCHEMA_DIR}/${CVE_SCHEMA_FILENAME}" > "${CVE_SCHEMA_DIR}/cve-schema.json"
- name: Bundle schema for AJV
run: |
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"
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"
- name: Validate JSON schema
run: |
ajv compile -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.0_bundled.json"
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"
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"
ajv compile -c ajv-formats -s "${CVE_SCHEMA_DIR}/docs/CVE_JSON_5.1_bundled.json"
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"
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"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Learn more about the CVE program at: https://www.cve.org/

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

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
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

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
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

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://cveproject.github.io/cve-schema/schema/v5.0/docs/CVE_JSON_5.0_bundled.json",
"$id": "https://cveproject.github.io/cve-schema/schema/v5.0/docs/CVE_JSON_5.1_bundled.json",
"title": "CVE JSON record format",
"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/).",
"definitions": {
Expand Down Expand Up @@ -364,7 +364,7 @@
"dataVersion": {
"description": "The version of the schema being used. Used to support multiple versions of this format.",
"type": "string",
"enum": ["5.0"]
"enum": ["5.1"]
},
"cveMetadataPublished": {
"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.",
Expand Down
Loading

0 comments on commit 0416cce

Please sign in to comment.