tapir
tapir copied to clipboard
Schema support for mutually exclusive fields (exactly oneOf)
OpenAPI allows for expressing mutually excslusive fields (exactly oneOf). Is it perhaps possible in Schema?
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.