Skip to content

fix(receivers): allow null for AwsEventV1.multiValueQueryStringParameters#3019

Open
muskaannnr wants to merge 1 commit into
slackapi:mainfrom
muskaannnr:fix/aws-event-v1-null-params
Open

fix(receivers): allow null for AwsEventV1.multiValueQueryStringParameters#3019
muskaannnr wants to merge 1 commit into
slackapi:mainfrom
muskaannnr:fix/aws-event-v1-null-params

Conversation

@muskaannnr

Copy link
Copy Markdown

AWS API Gateway sends null for multiValueQueryStringParameters when no multi-value query params are present. This matches @types/aws-lambda's APIGatewayProxyEvent and fixes the type error when passing that type directly to the handler returned by AwsLambdaReceiver.

Fixes #2939

Summary

AwsEventV1.multiValueQueryStringParameters was typed as non-nullable (Record<string, string[] | undefined>), but AWS actually sends null for this field when there are no multi-value query string parameters. This caused a type incompatibility when passing an APIGatewayProxyEvent (from @types/aws-lambda) directly to the handler returned by AwsLambdaReceiver.start() or toHandler(), requiring an unnecessary as AwsEventV1 cast.

This PR changes the type to AwsEventMultiValueStringParameters | null to match reality and the official AWS types. A tsd type test is also added to prevent regression.

Requirements

…ters

AWS API Gateway sends null for multiValueQueryStringParameters when no
multi-value query params are present. This matches @types/aws-lambda's
APIGatewayProxyEvent and fixes the type error when passing that type
directly to the handler returned by AwsLambdaReceiver.

Fixes slackapi#2939
@muskaannnr
muskaannnr requested a review from a team as a code owner July 18, 2026 19:01
@changeset-bot

changeset-bot Bot commented Jul 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8506b53

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/bolt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Types AwsEvent and APIGatewayProxyEvent are not compatible

1 participant