Bug: SQS MessageAttribute Schema invalid #3398
Labels
bug
Something isn't working
discussing
The issue needs to be discussed, elaborated, or refined
need-response
This item requires a response from a customer and will considered stale after 2 weeks
parser
This item relates to the Parser Utility
Expected Behavior
Using the SQS Envelope and my custom body schema, I expected to be able to parse SQS events generated by Symfony Messenger.
Current Behavior
Parsing fails, because binaryValue is null. The SQS SqsMsgAttributeSchema defines it as optional string, but not nullish.
Code snippet
Steps to Reproduce
envelope: SqsEnvelope
to parse an SQS event with the above mentioned messageAttributes.Possible Solution
BinaryValue could be set to be nullish:
binaryValue: z.string().nullish()
Powertools for AWS Lambda (TypeScript) version
2.10
AWS Lambda function runtime
20.x
Packaging format used
npm
Execution logs
The text was updated successfully, but these errors were encountered: