Skip to content

Add support for uint16/uint32 #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alvinyan-bond
Copy link

u and i are field types in the AMQP-0.9.1 spec that correspond to uint16 and uint32 respectively; currently this library throws when encountering these field types. This change adds full support for reading and writing them and resolves #302. It also includes a test suite exercising all field types in both the read and write pathways.

This change also includes some housekeeping updates to satisfy the linter, which was no longer passing due to issues like not handling returned errors. However, in the interest of full backwards compatibility, this change does not actually return those errors - instead it swallows them with _ to preserve existing behavior.

Apart from the new field types, the only potential breaking change is lowercasing a few error messages which started with uppercase letters.

alvin.yan added 2 commits June 5, 2025 18:15
u and i are field types in the AMQP-0.9.1 spec that
correspond to uint16 and uint32 respectively; currently
this library throws when encountering these field types.
This change adds full support for reading and writing them
and resolves rabbitmq#302
@Zerpet Zerpet self-assigned this Jun 26, 2025
@Zerpet
Copy link
Member

Zerpet commented Jun 26, 2025

Thank you for this contribution! I've been busy with other tasks and responsibilities. I'm hoping to get to this PR this week, or worst case, early next week.

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.

Incomplete support of 0-9-1 field type values
2 participants