Feature request: Export APIGatewayV2RequestAuthorizer & APIGatewayV2RequestContext schemas
Use case
I need to parse the actual structure of an APIGatewayProxyEventV2Schema's requestContext.authorizer.lambda key (for both typing and validation reasons)
Solution/User Experience
Export the APIGatewayV2RequestAuthorizer & APIGatewayV2RequestContext schemas so that APIGatewayV2RequestAuthorizer can be extended with a custom schema for the lambda authorizer, and in turn extend APIGatewayV2RequestContext with that schema (and in turn extend APIGatewayProxyEventV2Schema).
Alternative solutions
No response
Acknowledgment
- [x] This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- [x] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Hi @codyfrisch, thanks for opening this issue.
I think it makes sense to export them, I'm adding this to the backlog.
If you'd like to open a PR to get it done, I'd be happy to help you merge it. Otherwise we'll get to it before next release in ~2 weeks.
If you'd like to open a PR to get it done, I'd be happy to help you merge it. Otherwise we'll get to it before next release in ~2 weeks.
I'll let you do it. (I'll start contributing eventually). In the meantime, I created duplicates to keep me going until this is released.
⚠️ COMMENT VISIBILITY WARNING ⚠️
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
This is now released under v2.11.0 version!