Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading