softwaremill / softwaremill/tapir
Support first-successful deserialization strategy for Picklers
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.5k
- Forks
- 468
- Avg merge
- 5h 37m
- Merged PRs (30d)
- 34
Description
In addition to discriminator field and oneOfWrapped strategies, Pickler should support a first-successful strategy, where its Reader tries to read data for all possible coproduct subtypes until it suceeds.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Pickler implementation and its Reader handling for discriminator and oneOfWrapped strategies. Trace how coproduct subtypes are selected, then define tests showing that reading succeeds when an earlier subtype fails and a later subtype matches; done means the first-successful strategy is supported alongside the existing strategies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100