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

Representation of oneof with tuples #87

Open
pallix opened this issue Feb 1, 2018 · 0 comments
Open

Representation of oneof with tuples #87

pallix opened this issue Feb 1, 2018 · 0 comments

Comments

@pallix
Copy link
Contributor

pallix commented Feb 1, 2018

The current representation of oneof field use tuples. This is problematic when using the Poison library to serialize a Protobuf structure to JSON: tuples cannot be converted to JSON (only arrays, maps etc.).

Would it make sense and would it be possible to use an array (possibly optionally if it breaks code) to represent oneof fields? This would allow a great interoperability between exprotobuf and JSON.

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

No branches or pull requests

1 participant