Skip to content

Commit e7ef344

Browse files
authored
Add omitempty the the authentication field in APIGatewayV2HTTPRequestContext (#426)
This field is not required to be present in the payload for public APIs.
1 parent 80c32f1 commit e7ef344

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)