File tree Expand file tree Collapse file tree
schema/support/bundling-scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export CVE_SCHEMA_DIR=$( pwd) /schema
2+ export CVE_SCHEMA_FILENAME=CVE_Record_Format.json
3+ npm install --loglevel verbose -g yargs ajv-formats@" ^1.5.x" ajv-cli@" ^4.0.x"
4+ pushd " ${CVE_SCHEMA_DIR} /support/schema2markmap"
5+ npm install
6+ popd
7+ sed ' s/file\://g' " ${CVE_SCHEMA_DIR} /${CVE_SCHEMA_FILENAME} " > " ${CVE_SCHEMA_DIR} /cve-schema.json"
8+ node " ${CVE_SCHEMA_DIR} /support/schema2markmap/schema-bundle.js" " ${CVE_SCHEMA_DIR} /cve-schema.json" " ${CVE_SCHEMA_DIR} /docs/"
9+ ajv compile -c ajv-formats -s " ${CVE_SCHEMA_DIR} /docs/CVE_Record_Format_bundled.json"
10+ ajv validate -c ajv-formats -s " ${CVE_SCHEMA_DIR} /docs/CVE_Record_Format_bundled.json" -d " ${CVE_SCHEMA_DIR} /docs/full-record-basic-example.json"
11+ ajv validate -c ajv-formats -s " ${CVE_SCHEMA_DIR} /docs/CVE_Record_Format_bundled.json" -d " ${CVE_SCHEMA_DIR} /docs/full-record-advanced-example.json"
12+ ajv validate -c ajv-formats -s " ${CVE_SCHEMA_DIR} /docs/CVE_Record_Format_bundled_cnaPublishedContainer.json" -d " ${CVE_SCHEMA_DIR} /docs/cnaContainer-advanced-example.json"
13+ ajv validate -c ajv-formats -s " ${CVE_SCHEMA_DIR} /docs/CVE_Record_Format_bundled_cnaPublishedContainer.json" -d " ${CVE_SCHEMA_DIR} /docs/cnaContainer-basic-example.json"
You can’t perform that action at this time.
0 commit comments