olivierlsc / swagger-express-ts

Generate and serve swagger.json
MIT License
147 stars 60 forks source link

Invalid union type handling #51

Open WeekendMan opened 5 years ago

WeekendMan commented 5 years ago

The code below gives object type on Swagger page for model details. Adding explicit "type" to @ApiModelProperty doesn't change anything. V 1.0.1 + Express + Inversify from your example.

  @ApiModelProperty({
    description: 'User birthday'
  })
  public readonly birthday: string | null;