Skip to content

Commit

Permalink
Add omitempty the the authentication field in APIGatewayV2HTTPRequest…
Browse files Browse the repository at this point in the history
…Context (#426)

This field is not required to be present in the payload for public APIs.
  • Loading branch information
calavera authored Feb 7, 2022
1 parent 80c32f1 commit e7ef344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/apigw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e7ef344

Please sign in to comment.