Skip to content

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