Skip to content

Commit

Permalink
fix(validate): init ajv with { allErrors: true }
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 6, 2021
1 parent f47fdd1 commit 9793718
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/validateAndCoerceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9793718

Please sign in to comment.