Skip to content

Conversation

@seb-cr
Copy link
Contributor

@seb-cr seb-cr commented Dec 8, 2023

Allows us to remove the non-null assertions, making this model more type-safe.

This is unlikely to break any existing applications as this model is intended for received messages, which have all required fields.

Jira: ENG-2733

BREAKING CHANGE: SQSMessageModel will throw if required fields (MessageID, ReceiptHandle, Body) are missing from the SQS message.

Allows us to remove the non-null assertions, making this model more
type-safe.

This is unlikely to break any existing applications as this model is
intended for _received_ messages, which have all required fields.

BREAKING CHANGE: `SQSMessageModel` will throw if required fields
(`MessageID`, `ReceiptHandle`, `Body`) are missing from the SQS message.
@seb-cr seb-cr changed the title feat: SQSMessageModel checks message has required fields feat: SQSMessageModel validates required fields of message Dec 8, 2023
@seb-cr seb-cr requested a review from corinja December 11, 2023 13:18
@seb-cr seb-cr merged commit 6a14aca into beta Dec 11, 2023
@seb-cr seb-cr deleted the ENG-2733/validate-sqsmessagemodel-values branch December 11, 2023 16:18
@github-actions
Copy link

🎉 This PR is included in version 2.0.0-beta.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants