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(kernel): correctly serialize enum values #754

Merged
merged 3 commits into from
Aug 29, 2019

Conversation

RomainMuller
Copy link
Contributor

When string-valued enums were serialized, an incorrect reference would
be created if the label of the enum entry did not match it's string
value; due to the lookup code being incorrect.

Updated a string-valued enum and introduced new compliance tests to
ensure such enum values are passed across correctly.

Fixes #753


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

When string-valued enums were serialized, an incorrect reference would
be created if the label of the enum entry did not match it's string
value; due to the lookup code being incorrect.

Updated a string-valued enum and introduced new compliance tests to
ensure such enum values are passed across correctly.

Fixes #753
@RomainMuller RomainMuller requested review from bmaizels and a team as code owners August 29, 2019 11:44
rix0rrr
rix0rrr previously approved these changes Aug 29, 2019
Copy link
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

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

Good catch!

@mergify mergify bot dismissed rix0rrr’s stale review August 29, 2019 12:03

Pull request has been modified.

@RomainMuller RomainMuller merged commit 41ed25d into master Aug 29, 2019
@RomainMuller RomainMuller deleted the rmuller/fix-enum-serialization branch August 29, 2019 12:22
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.

Kernel incorrectly serializes ENUM values
2 participants