scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.4k stars 225 forks source link

Getting string instead of array when using multipart form data #356

Open EngineerMonkey404 opened 11 months ago

EngineerMonkey404 commented 11 months ago

Hello! Im using NestJs and Swagger. Im having this DTO to create documentation. image

and this endpoint to create documentation. image

so when im creating my object in swagger image

i got this object. image

There are some properties, like 'categories' or 'companies' which are supposed to be arrays but instead are strings. How can i fix it? Thanks for answer!

Bekhx commented 10 months ago

I have the same issue

mhdmoh commented 1 month ago

I am also having the same issue, did anyone find a solution ?