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 multiword enum cases encoding and decoding #523

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Conversation

evil159
Copy link
Contributor

@evil159 evil159 commented Apr 30, 2024

What does this pull request do?

Multi-word enum cases were not encoded/decoded properly - instead of the correct form e.g. some-value it would be some_value which would cause a PlatformException.

What is the motivation and context behind this change?

#500, #455, #161, https://mapbox.atlassian.net/browse/MAPSFLT-206

Pull request checklist:

  • Add a changelog entry.
  • Write tests for all new functionality. If tests were not written, please explain why.
  • Add documentation comments for any added or updated public APIs.

@bf-vs
Copy link

bf-vs commented Apr 30, 2024

LGTM but why not use enhanced enums? It would be a cleaner solution.

@evil159
Copy link
Contributor Author

evil159 commented Apr 30, 2024

LGTM but why not use enhanced enums? It would be a cleaner solution.

Our code generation tool - Pigeon, doesn't support them.

This was referenced Apr 30, 2024
Copy link
Contributor

@pjleonard37 pjleonard37 left a comment

Choose a reason for hiding this comment

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

👍

@evil159 evil159 merged commit e530497 into main Apr 30, 2024
5 checks passed
@evil159 evil159 deleted the rl/enum_coding_fix branch April 30, 2024 20:15
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.

None yet

3 participants