@@ -43,7 +43,7 @@ const APIGatewayEventIdentity = z.object({
43
43
*
44
44
* @see {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference }
45
45
*/
46
- const APIGatewayEventRequestContext = z
46
+ const APIGatewayEventRequestContextSchema = z
47
47
. object ( {
48
48
accountId : z . string ( ) ,
49
49
apiId : z . string ( ) ,
@@ -161,7 +161,7 @@ const APIGatewayProxyEventSchema = z.object({
161
161
multiValueQueryStringParameters : z . record ( APIGatewayStringArray ) . nullable ( ) ,
162
162
pathParameters : APIGatewayRecord . nullish ( ) ,
163
163
stageVariables : APIGatewayRecord . nullish ( ) ,
164
- requestContext : APIGatewayEventRequestContext ,
164
+ requestContext : APIGatewayEventRequestContextSchema ,
165
165
body : z . string ( ) . nullable ( ) ,
166
166
isBase64Encoded : z . boolean ( ) ,
167
167
} ) ;
@@ -232,7 +232,7 @@ const APIGatewayRequestAuthorizerEventSchema = z.object({
232
232
multiValueQueryStringParameters : z . record ( APIGatewayStringArray ) ,
233
233
pathParameters : APIGatewayRecord ,
234
234
stageVariables : APIGatewayRecord ,
235
- requestContext : APIGatewayEventRequestContext ,
235
+ requestContext : APIGatewayEventRequestContextSchema ,
236
236
domainName : z . string ( ) . optional ( ) ,
237
237
deploymentId : z . string ( ) . optional ( ) ,
238
238
apiId : z . string ( ) . optional ( ) ,
@@ -262,4 +262,5 @@ export {
262
262
APIGatewayProxyEventSchema ,
263
263
APIGatewayRequestAuthorizerEventSchema ,
264
264
APIGatewayTokenAuthorizerEventSchema ,
265
+ APIGatewayEventRequestContextSchema ,
265
266
} ;
0 commit comments