softwaremill / softwaremill/tapir

Schema support for mutually exclusive fields (exactly oneOf)

Open
#4,684 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.5k
Forks
468
Avg merge
5h 37m
Merged PRs (30d)
34

Description

OpenAPI allows for expressing mutually excslusive fields (exactly oneOf). Is it perhaps possible in Schema?

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 Schema API and its OpenAPI conversion entry points; the issue does not name specific files or tests. Determine how mutually exclusive fields should be represented and add support for exactly oneOf, with tests showing the generated schema and the intended validation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, scala
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.