'TSOA FormField Array of String request
I'm trying to generate a route that passes a file plus some additional parameters to a controller as follows:
myController(
@FormField() name: string,
@FormField() cnpj: string,
@FormField() sector: string,
@FormField() size: string,
@FormField() allowedDomains: string[], <-- Here the problem
@FormField() website?: string,
@UploadedFile() logo?: Express.Multer.File) {}
But one of these parameters is an array of strings (allowedDomains), and instead of being displayed as in the first image, it is generated according to the second.
I've googled and look in the documentation, but I couldn't understand what's wrong. Directly changing the swagger file by adding an "items" property, works.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
