@@ -48,29 +48,29 @@ type APIGatewayV2HTTPRequest struct {
4848 RouteKey string `json:"routeKey"`
4949 RawPath string `json:"rawPath"`
5050 RawQueryString string `json:"rawQueryString"`
51- Cookies []string `json:"cookies"`
51+ Cookies []string `json:"cookies,omitempty "`
5252 Headers map [string ]string `json:"headers"`
53- QueryStringParameters map [string ]string `json:"queryStringParameters"`
54- PathParameters map [string ]string `json:"pathParameters"`
53+ QueryStringParameters map [string ]string `json:"queryStringParameters,omitempty "`
54+ PathParameters map [string ]string `json:"pathParameters,omitempty "`
5555 RequestContext APIGatewayV2HTTPRequestContext `json:"requestContext"`
56- StageVariables map [string ]string `json:"stageVariables"`
57- Body string `json:"body"`
56+ StageVariables map [string ]string `json:"stageVariables,omitempty "`
57+ Body string `json:"body,omitempty "`
5858 IsBase64Encoded bool `json:"isBase64Encoded"`
5959}
6060
6161// APIGatewayV2HTTPRequestContext contains the information to identify the AWS account and resources invoking the Lambda function.
6262type APIGatewayV2HTTPRequestContext struct {
63- RouteKey string `json:"routeKey"`
64- AccountID string `json:"accountId"`
65- Stage string `json:"stage"`
66- RequestID string `json:"requestId"`
67- Authorizer APIGatewayV2HTTPRequestContextAuthorizerDescription `json:"authorizer"`
68- APIID string `json:"apiId"` // The API Gateway HTTP API Id
69- DomainName string `json:"domainName"`
70- DomainPrefix string `json:"domainPrefix"`
71- Time string `json:"time"`
72- TimeEpoch int64 `json:"timeEpoch"`
73- HTTP APIGatewayV2HTTPRequestContextHTTPDescription `json:"http"`
63+ RouteKey string `json:"routeKey"`
64+ AccountID string `json:"accountId"`
65+ Stage string `json:"stage"`
66+ RequestID string `json:"requestId"`
67+ Authorizer * APIGatewayV2HTTPRequestContextAuthorizerDescription `json:"authorizer,omitempty "`
68+ APIID string `json:"apiId"` // The API Gateway HTTP API Id
69+ DomainName string `json:"domainName"`
70+ DomainPrefix string `json:"domainPrefix"`
71+ Time string `json:"time"`
72+ TimeEpoch int64 `json:"timeEpoch"`
73+ HTTP APIGatewayV2HTTPRequestContextHTTPDescription `json:"http"`
7474}
7575
7676// APIGatewayV2HTTPRequestContextAuthorizerDescription contains authorizer information for the request context.
0 commit comments