softwaremill / softwaremill/tapir

Allow configuring Pickler to skip None when writing Options

Open
#3,169 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

When encoding to JSON, current Pickler Writer behavior will always write None as null.
We'd like to allow configuring it so that such values are skipped entirely.

BTW default uPickle handling for Option is encoding it as an array. This will not happen when using Tapir Pickler.

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

No file or test is named in the issue. Start by locating Tapir Pickler's Writer JSON encoding and its handling of Option or None; determine how writer configuration is represented. Done means a configuration can omit None values instead of writing null, while the existing behavior remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.