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.43k stars 228 forks source link

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

Open EngineerMonkey404 opened 1 year ago

EngineerMonkey404 commented 1 year 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 1 year ago

I have the same issue

mhdmoh commented 6 months ago

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