@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.
- package/dist/service/request.js +5 -3
- package/package.json +1 -1
package/dist/service/request.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
266
|
-
description
|
|
268
|
+
code: `validation.${validationKey}`
|
|
267
269
|
});
|
|
268
270
|
});
|
|
269
271
|
});
|