Skip to content

Commit

Permalink
Omit authentication field in APIGatewayV2HTTPRequestContext
Browse files Browse the repository at this point in the history
This field is not in the payload for public APIs.
  • Loading branch information
calavera authored Feb 5, 2022
1 parent 80c32f1 commit f02c91b
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 f02c91b

Please sign in to comment.