Skip to content

Commit

Permalink
coerce array
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Mar 21, 2019
1 parent 8f6f3f4 commit 3df6a80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/register": "^7.0.0",
"@babel/core": "^7.4.0",
"@babel/preset-env": "^7.4.1",
"@babel/register": "^7.4.0",
"babel-eslint": "^10.0.1",
"babel-plugin-istanbul": "^5.1.1",
"chai": "^4.2.0",
"coveralls": "^3.0.3",
"eslint": "^5.15.2",
"eslint": "^5.15.3",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const INT32_MAX = Math.pow(2, 31) - 1;
export default class Validator {
constructor(opts = {}) {
this.ajv = new Ajv({
coerceTypes: true,
coerceTypes: 'array',
useDefaults: true,
unknownFormats: 'ignore',
...opts
Expand Down

0 comments on commit 3df6a80

Please sign in to comment.