bitwalker / bitwalker/exprotobuf
Representation of oneof with tuples
- Dominant language
- Elixir
- Stars
- 482
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating how exprotobuf represents oneof fields and how its generated structures interact with Poison serialization. Compare tuple and array representations, check for compatibility concerns raised by existing behavior, and define done as a representation that can be serialized to JSON without breaking supported Protobuf usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100