Skip to content

Commit

Permalink
Validation feature
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jul 4, 2023
1 parent 2e8355a commit 18f3cb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 104 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Ajv from "ajv";
import addFormats from "ajv-formats";
import ajvDraft2019 from "ajv-formats-draft2019";
import { platform as _platform, homedir, tmpdir } from "node:os";
import { join, dirname, sep } from "node:path";
import { parse } from "ssri";
Expand Down Expand Up @@ -4644,10 +4643,10 @@ export const validateBom = (bomJson) => {
);
const ajv = new Ajv({
schemas: [schema, defsSchema, spdxSchema],
strict: false
strict: false,
logger: false
});
addFormats(ajv);
ajvDraft2019(ajv);
const validate = ajv.getSchema(
"http://cyclonedx.org/schema/bom-1.5.schema.json"
);
Expand Down
100 changes: 0 additions & 100 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@babel/traverse": "^7.22.5",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"ajv-formats-draft2019": "^1.6.1",
"cheerio": "^1.0.0-rc.12",
"edn-data": "^1.0.0",
"glob": "^10.3.0",
Expand Down

0 comments on commit 18f3cb5

Please sign in to comment.