@dotcook/lambda-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@dotcook/lambda-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,2 +17,7 @@ | ||
if (paramsSchema) { | ||
if (!params) { | ||
const error = Error(`${property} required`); | ||
error.status = 400; | ||
throw error; | ||
} | ||
const JoiSchema = paramsSchema.validate ? paramsSchema : Joi.object(paramsSchema); | ||
@@ -19,0 +24,0 @@ _.set(handler, `event.${key}`, Joi.attempt(params, JoiSchema)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2948
83