azure-functions-openapi-extension icon indicating copy to clipboard operation
azure-functions-openapi-extension copied to clipboard

multipart/form-data for a list of byte[]

Open rtellez91 opened this issue 2 years ago • 0 comments

Describe the issue

Having something like this: public class FileModel { public byte[] File {get; set;} }

When the type is a List<FileModel[]> the example generated in swagger ui shows like it was an application/json request, but when it is just FileModel it displays the ui for pick a file from your disk.

Also, when you set the type to just byte[], the ui displays it as a text instead of a file upload control.

Expected behavior Swagger ui renders multiple file upload when having List<FileModel[]>. It also displays file upload for byte[]

rtellez91 avatar Feb 08 '23 01:02 rtellez91