From f02c91b3238335621c5031beaebab93d2248241b Mon Sep 17 00:00:00 2001 From: David Calavera Date: Sat, 5 Feb 2022 13:10:39 -0800 Subject: [PATCH] Omit authentication field in APIGatewayV2HTTPRequestContext This field is not in the payload for public APIs. --- events/apigw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/apigw.go b/events/apigw.go index 06cf8b9f..3a112b2b 100644 --- a/events/apigw.go +++ b/events/apigw.go @@ -76,7 +76,7 @@ type APIGatewayV2HTTPRequestContext struct { Time string `json:"time"` TimeEpoch int64 `json:"timeEpoch"` HTTP APIGatewayV2HTTPRequestContextHTTPDescription `json:"http"` - Authentication APIGatewayV2HTTPRequestContextAuthentication `json:"authentication"` + Authentication APIGatewayV2HTTPRequestContextAuthentication `json:"authentication,omitempty"` } // APIGatewayV2HTTPRequestContextAuthorizerDescription contains authorizer information for the request context.