Closed Shreemanarjun closed 1 month ago
Hi,
overwrite
can only overwrite "top level" types, i.e. you are overwriting "File" but the type in the body is "Array
You can solve this by defining the type of the body as:
multipartBody {
//...
part(
name = "docs",
type = array<File>() // manually define the type as an array of "File"
)
}
Issue
I want to accept multiple files with given doc name in swagger ui. the docName part is rendering correctly as it Array but when i define it show somehow different. i think somehow the plugin unable to overwrite the file class which causes the given problem.
Screenshot
Swagger Config
api.json
Solution needed: if the file format is binary and type somehow will be string then it will render as usual.
Route