Skip to content

Commit

Permalink
Updated naming for CVE Record Format index.js mindmap
Browse files Browse the repository at this point in the history
The CVE Record Format legacy naming was used in a few places in the mindmap file. Updated to use the correct naming. This fixes Issue CVEProject#305
  • Loading branch information
ccoffin authored Dec 30, 2024
1 parent b3f3750 commit 791385c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema/support/schema2markmap/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Author: Chandan BN (c) 2021
// (1) convert CVE JSON schema to a mindmap
// (1) convert CVE Record Format JSON schema to a mindmap

var ml = require('markmap-lib')
var Transformer = ml.Transformer;
Expand All @@ -16,7 +16,7 @@ const { Markmap, loadCSS, loadJS } = markmap;

let forDeletion = ['properties', 'items', 'anyOf', 'allOf', 'oneOf'];

var markdown = "# CVE JSON Record\n";
var markdown = "# CVE Record Format\n";

function postfunc(obj, path, parent, parentPath) {
if (path[1] && isNaN(path[1])) {
Expand Down Expand Up @@ -56,7 +56,7 @@ async function schemaMindMap() {

// create mindmap html
var html = fillTemplate(root, assets);
html = html.replace('<title>Markmap</title>', '<title>CVE JSON v5 Mindmap</title>');
html = html.replace('<title>Markmap</title>', '<title>CVE Record Format Mindmap</title>');
console.log(html);
}

Expand Down

0 comments on commit 791385c

Please sign in to comment.