azure-functions-openapi-extension
azure-functions-openapi-extension copied to clipboard
multipart/form-data for a list of byte[]
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[]