Closed
Description
Summary
The AlbSchema
& AlbMultiValueHeadersSchema
are basically the same except for the latter extending the first by adding two properties. These two properties are mutually exclusive with the single-value version of headers
and queryStringParameters
and their presence depends on how the ALB is configured.
Because of this, we can deprecate the AlbMultiValueHeadersSchema
, move the two properties within the AlbSchema
and mark all four as .optional()
.
Why is this needed?
So that we can reduce the amount of built-in schemas customers have to choose from.
Which area does this relate to?
Parser
Solution
Mark the AlbMultiValueHeadersSchema
as deprecated and move the two extended properties in the base AlbSchema
.
Acknowledgment
- This request meets Powertools for AWS Lambda (TypeScript) Tenets
- 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.