From 515050b88e05ea4ef05f74fa426b61dbc401d97a Mon Sep 17 00:00:00 2001 From: Jianan Ding Date: Tue, 5 Dec 2017 15:37:42 -0800 Subject: [PATCH] Local API Gateway Event omitempty issue --- event.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/event.go b/event.go index 18a07f1cc7..88e4b78ab1 100644 --- a/event.go +++ b/event.go @@ -10,15 +10,15 @@ import ( // Event represents an event passed to an AWS Lambda function by the runtime type Event struct { - HTTPMethod string `json:"httpMethod,omitempty"` - Body string `json:"body,omitempty"` - Resource string `json:"resource,omitempty"` - RequestContext RequestContext `json:"requestContext,omitempty"` - QueryStringParams map[string]string `json:"queryStringParameters,omitempty"` - Headers map[string]string `json:"headers,omitempty"` - PathParameters map[string]string `json:"pathParameters,omitempty"` - StageVariables map[string]string `json:"stageVariables,omitempty"` - Path string `json:"path,omitempty"` + HTTPMethod string `json:"httpMethod"` + Body string `json:"body"` + Resource string `json:"resource"` + RequestContext RequestContext `json:"requestContext"` + QueryStringParams map[string]string `json:"queryStringParameters"` + Headers map[string]string `json:"headers"` + PathParameters map[string]string `json:"pathParameters"` + StageVariables map[string]string `json:"stageVariables"` + Path string `json:"path"` } // RequestContext represents the context object that gets passed to an AWS Lambda function