@felloh-org/lambda-wrapper 1.0.22 → 1.0.23

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.
@@ -259,11 +259,13 @@ class Request extends _dependencyAware.default {
259
259
  Logger.label('request-validation-failed');
260
260
  const validationErrorResponse = new _response.default({}, 422);
261
261
  Object.keys(validation).forEach(validationKey => {
262
- validation[validationKey].forEach(description => {
262
+ validation[validationKey].forEach(message => {
263
263
  validationErrorResponse.addError({
264
+ title: 'Validation Error',
265
+ message,
266
+ documentation_url: 'https://developers.felloh.com/errors#error-responses',
264
267
  type: 'validation',
265
- field: validationKey,
266
- description
268
+ code: `validation.${validationKey}`
267
269
  });
268
270
  });
269
271
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {