From 5eb02b3d5aaef15c7bfa2f65b8638c3945f55eba Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Wed, 15 Jun 2016 19:45:38 +0200 Subject: [PATCH] Replace input.path("$") with input.json("$") in universal request template --- lib/plugins/awsCompileApigEvents/lib/compileMethods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/awsCompileApigEvents/lib/compileMethods.js b/lib/plugins/awsCompileApigEvents/lib/compileMethods.js index eaceba978..b939ec7b3 100644 --- a/lib/plugins/awsCompileApigEvents/lib/compileMethods.js +++ b/lib/plugins/awsCompileApigEvents/lib/compileMethods.js @@ -39,7 +39,7 @@ module.exports = { } #end { - "body": $input.path("$"), + "body": $input.json("$"), "method": "$context.httpMethod", #set( $map = $input.params().header ) @@ -77,7 +77,7 @@ module.exports = { "IntegrationHttpMethod" : "${method.toUpperCase()}", "Type" : "AWS", "Uri" : "${lambdaUri}", - "RequestTemplates": { + "RequestTemplates" : { "application/json" : ${JSON.stringify(DEFAULT_JSON_REQUEST_TEMPLATE)} } },