Skip to content
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

Fix Bug with Ion Text<>Binary Conversion #335

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

Conversation

rmarrowstone
Copy link
Contributor

This change fixes a bug in the Ion Text<>Binary conversion where
an Ion stream of multiple top-level values would be transcoded as
an Ion list.

In the process of fixing it I cleaned up all of the Format comparisons
to be identity of enum constant instead of string comparison of value.
This is a lot more succinct and avoid helps to avoid typo errors.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This change fixes a bug in the Ion Text<>Binary conversion where
an Ion stream of multiple top-level values would be transcoded as
an Ion list.

In the process of fixing it I cleaned up all of the Format comparisons
to be identity of enum constant instead of string comparison of value.
This is a lot more succinct and avoid helps to avoid typo errors.
@rmarrowstone rmarrowstone marked this pull request as ready for review January 10, 2024 21:41
* Removed TODO that was acted on
* Removed superfluous lazy loading and wrapping in test
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.

3 participants