Schema support for mutually exclusive fields (exactly oneOf) · Issue #4684 · softwaremill/tapir · GitHub
Skip to content

Schema support for mutually exclusive fields (exactly oneOf) #4684

Open

Description

@kamilkloch

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

Activity

  1. adamw commented on Jul 9, 2025

    @adamw
    Member

    I don't think there's any support for this. What's the syntax in OpenAPI, and example code in Scala which should be mapped to such a schema? Maybe we could compute this information, or add a hint/extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions