@middy/validator 6.0.0-alpha.0 → 6.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/transpile.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/validator",
3
- "version": "6.0.0-alpha.0",
3
+ "version": "6.0.0-beta.0",
4
4
  "description": "Validator middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -73,7 +73,7 @@
73
73
  "url": "https://github.com/sponsors/willfarrell"
74
74
  },
75
75
  "dependencies": {
76
- "@middy/util": "6.0.0-alpha.0",
76
+ "@middy/util": "6.0.0-beta.0",
77
77
  "ajv": "8.17.1",
78
78
  "ajv-errors": "3.0.0",
79
79
  "ajv-formats": "3.0.1",
@@ -82,10 +82,10 @@
82
82
  "ajv-keywords": "5.1.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@middy/core": "6.0.0-alpha.0",
85
+ "@middy/core": "6.0.0-beta.0",
86
86
  "@types/http-errors": "^2.0.0",
87
87
  "ajv-bsontype": "^1.0.7",
88
- "ajv-cmd": "0.5.0"
88
+ "ajv-cmd": "^0.7.0"
89
89
  },
90
90
  "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
91
91
  }
package/transpile.js CHANGED
@@ -55,7 +55,7 @@ const compileSchema = (schema, options = {}) => {
55
55
  const ajvDefaults = {
56
56
  strict: true,
57
57
  coerceTypes: 'array', // important for query string params
58
- allErrors: true,
58
+ allErrors: true, // required for ajvErrors
59
59
  useDefaults: 'empty',
60
60
  messages: true // needs to be true to allow multi-locale errorMessage to work
61
61
  }