tapir icon indicating copy to clipboard operation
tapir copied to clipboard

Schema support for mutually exclusive fields (exactly oneOf)

Open kamilkloch opened this issue 6 months ago • 1 comments

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

kamilkloch avatar Jul 02 '25 13:07 kamilkloch

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.

adamw avatar Jul 09 '25 09:07 adamw