File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
controller/cve.controller Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const cnaContainerSchema = JSON.parse(fs.readFileSync('src/middleware/schemas/5.
8
8
const logger = require ( '../../middleware/logger' )
9
9
const Ajv = require ( 'ajv' )
10
10
const addFormats = require ( 'ajv-formats' )
11
- const ajv = new Ajv ( { allErrors : true } )
11
+ const ajv = new Ajv ( { allErrors : false , multipleOfPrecision : 6 } )
12
12
addFormats ( ajv )
13
13
const validateRejected = ajv . compile ( RejectedSchema )
14
14
const validateCnaContainer = ajv . compile ( cnaContainerSchema )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const cveSchemaV5 = JSON.parse(fs.readFileSync('src/middleware/schemas/CVE_JSON_
6
6
7
7
const Ajv = require ( 'ajv' )
8
8
const addFormats = require ( 'ajv-formats' )
9
- const ajv = new Ajv ( { allErrors : true } )
9
+ const ajv = new Ajv ( { allErrors : false , multipleOfPrecision : 6 , verbose : true } )
10
10
addFormats ( ajv )
11
11
const validate = ajv . compile ( cveSchemaV5 )
12
12
const getConstants = require ( '../constants' ) . getConstants
You can’t perform that action at this time.
0 commit comments