Add a SumEncoding option that's somewhere between a TaggedObject and an UntaggedValue
Open
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 336
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 4
Description
Sometimes the tag and the content of the JSON you're processing are on the same level where both `TaggedObject` and `UntaggedValue` will not suffice. I propose adding another `SumEncoding` option that handles this case. The implementation should be very similar to that of `UntaggedValue`.
Contributor guide
Research direction
Start by reviewing the existing SumEncoding options, especially TaggedObject and UntaggedValue, to understand their behavior and implementation. Define the same-level tag-and-content JSON shape with examples, then add the new option and tests showing that it handles that shape without breaking the existing encodings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100