typescript-rest-swagger icon indicating copy to clipboard operation
typescript-rest-swagger copied to clipboard

Issue with TypeScript union types

Open dr-bonez opened this issue 6 years ago • 1 comments

It seems that swaggerGen treats anything that is a union type (i.e. string | null) as just an object. At the very least it would be good to just have it list the first type in the union. But would be best if it listed all available types.

dr-bonez avatar Mar 27 '18 15:03 dr-bonez

The tsoa library just introduces support for unions (i.e. |) and aggregates (i.e. &): https://github.com/lukeautry/tsoa

dgreene1 avatar Sep 08 '19 03:09 dgreene1