Optional
deprecatedWhether the type is deprecated or not.
Optional
descriptionDetailed description of the schema.
Optional
discriminatorDiscriminator info of the union type.
Optional
exampleExample value.
Optional
examplesList of example values as key-value pairs.
List of the union types.
Optional
titleTitle of the schema.
Union type.
IOneOf
represents an union type of the TypeScript (
A | B | C`).For reference, even though your Swagger (or OpenAPI) document has defined
anyOf
instead of theoneOf
, OpenApi forcibly converts it tooneOf
type.