Skip to content

Commit f02c91b

Browse files
authored
Omit authentication field in APIGatewayV2HTTPRequestContext
This field is not in the payload for public APIs.
1 parent 80c32f1 commit f02c91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/apigw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type APIGatewayV2HTTPRequestContext struct {
7676
Time string `json:"time"`
7777
TimeEpoch int64 `json:"timeEpoch"`
7878
HTTP APIGatewayV2HTTPRequestContextHTTPDescription `json:"http"`
79-
Authentication APIGatewayV2HTTPRequestContextAuthentication `json:"authentication"`
79+
Authentication APIGatewayV2HTTPRequestContextAuthentication `json:"authentication,omitempty"`
8080
}
8181

8282
// APIGatewayV2HTTPRequestContextAuthorizerDescription contains authorizer information for the request context.

0 commit comments

Comments
 (0)