From 979371892967d2d61f9533f4fc4f37748b667110 Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Sat, 6 Feb 2021 05:42:44 +0200 Subject: [PATCH] fix(validate): init ajv with { allErrors: true } --- src/lib/validateAndCoerceTypes.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/validateAndCoerceTypes.ts b/src/lib/validateAndCoerceTypes.ts index c2ee407d..ea9126fe 100644 --- a/src/lib/validateAndCoerceTypes.ts +++ b/src/lib/validateAndCoerceTypes.ts @@ -7,7 +7,10 @@ const schema = require('../../schema.json'); const pkg = require('../../package.json'); import { InvalidOptionsError, FailedYahooValidationError } from './errors'; -export const ajv = new Ajv({ allowUnionTypes: true }); +export const ajv = new Ajv({ + allErrors: true, + allowUnionTypes: true, +}); addFormats(ajv); ajv.addKeyword({