Skip to content

Conversation

StefanNienhuis
Copy link
Contributor

Make APIGatewayV2Request authorizer claims optional.

Motivation:

The current non-optional claims property is not compatible with the Lambda Runtime Interface Emulator.

Aside from this, the AWS Docs specify a null value in this example: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format

Modifications:

Make APIGatewayV2Request authorizer claims optional.

Result:

APIGatewayV2Request authorizer claims is optional, allowing a nil value so that the Lambda Runtime Interface Emulator works with this library and so it's in accordance with the AWS docs.

@swift-server-bot
Copy link

Can one of the admins verify this patch?

3 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@tomerd
Copy link
Contributor

tomerd commented Feb 10, 2022

@swift-server-bot test this please

@tomerd
Copy link
Contributor

tomerd commented Feb 10, 2022

example fixed in #9

@tomerd
Copy link
Contributor

tomerd commented Feb 15, 2022

@swift-server-bot test this please

@fabianfett fabianfett merged commit 87e09a7 into swift-server:main Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants