Skip to content

Conversation

@wojciechUrbanski
Copy link
Contributor

Fixes #373

According to doc, message attribute value/data type can't be an empty String. Same applies to message body

Wojtek Urbanski added 2 commits October 22, 2020 16:02
* Value can't be empty
* DataType can't be empty

Adding validation for message body:
* Message body can't be empty
def verifyMessageStringAttribute(stringAttribute: String, limits: Limits): Either[String, Unit] =
def verifyMessageStringAttribute(
attributeValue: String,
attributeName: String,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be name-value, as that's the usual order? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I have changed it to name-value order :)

@adamw adamw merged commit 3ab7dc8 into master Oct 26, 2020
@mergify mergify bot deleted the validate-empty-string-attributes branch October 26, 2020 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The behavior on sending message-attributes with empty value is different from that of SQS

3 participants