Skip to content

Commit

Permalink
feat: Coerce input configuration values
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 1, 2020
1 parent c51e293 commit 6d1ee37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/ConfigSchemaHandler/index.js
Expand Up @@ -91,7 +91,7 @@ class ConfigSchemaHandler {
this.relaxProviderSchema();
}

const ajv = new Ajv({ allErrors: true, verbose: true });
const ajv = new Ajv({ allErrors: true, coerceTypes: true, verbose: true });
require('ajv-keywords')(ajv, 'regexp');
// Workaround https://github.com/ajv-validator/ajv/issues/1255
normalizeSchemaObject(this.schema, this.schema);
Expand Down

0 comments on commit 6d1ee37

Please sign in to comment.