Closed
Description
Use case
We throw generic Error
when the body inside envelope is invalid or forward ZodError
when there is an issue with a schema. We should convert the generic error to be more specific and also wrap any ZodError
. This would allow us to control any changes from Zod library and potentially add more context
Solution/User Experience
Create ParseError
to throw either error specific to envelopes or schemas.
Alternative solutions
No response
Acknowledgment
- This feature 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped