softwaremill / softwaremill/tapir

Support first-successful deserialization strategy for Picklers

Open
#3,172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Pickler
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.