Swagger supports JSON Schema's anyOf and oneOf.
oneOf is analogous to the | (i.e. TypeScript union)typescript-json-schema's implementation (but be wary because JSON Schema is not equivalent to Swagger/OpenApi): https://github.com/YousefED/typescript-json-schema/blob/4f2d3da6f3f1ae3e1641b6777324c888a21264a3/typescript-json-schema.ts#L220allOf is analogous to the & (i.e. TypeScript intersection/aggregate)typescript-json-schema's implementation (but be wary because JSON Schema is not equivalent to Swagger/OpenApi): https://github.com/YousefED/typescript-json-schema/blob/4f2d3da6f3f1ae3e1641b6777324c888a21264a3/typescript-json-schema.ts#L660For those people who need a workaround, please check out: https://github.com/lukeautry/tsoa/issues/391
went live in v2.4.11
Most helpful comment
went live in v2.4.11