Skip to content

Conversation

hallvictoria
Copy link
Contributor

@hallvictoria hallvictoria commented Oct 1, 2025

Fixes #142

Allows for customers to send the following types in their dictionary:

  • bool
  • int
  • float
  • str
  • uuid
  • timedelta
  • datetime

Depending on the dict value type, the value is appropriately encoded into an amqp format.

@hallvictoria hallvictoria marked this pull request as ready for review October 2, 2025 15:00
# Encode map
def encode_amqp_map(dct):
if not dct:
return b""
Copy link
Contributor

Choose a reason for hiding this comment

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

If the dct is empty, shouldn't we still encode it with size= 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before this change, I had request.propertiesToModify = b"". I return just b"" here to keep the behavior consistent with what we had before

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.

Allow properties_to_modify param for servicebus settlement methods
2 participants