Open mm3141 opened 3 years ago
I am also experiencing the same issue with 13.13.2 and can confirm this was working in 13.11.3, with a signature as simple as
[HttpPost("upload")] public ActionResult Upload([FromForm] IFormFileCollection files) { return Ok(); }
Still not working in 13.15.5
This happens only with the OpenApi3 schema type, not with the Swagger2 schema type. Maybe it is not supported, idk.
I ran into this issue as well. With 13.15.10 building against net60, it generated the IEnumerable<object>
type for the files parameter.
I was able to fix the problem by switching to List<IFormFile>
which restored the IEnumerable<FileParameter>
signature in the generated client.
This swapping between a FormFileCollection
and List<IFormFile>
didn't work when I tried it in earlier versions of nswag (13.10.7).
We have an endpoint like this:
NSwag 13.11.3 used to generate something like this
whereas for 13.13.2 we have
effectively breaking the file naming support here.
Any idea what is the reason for that? Any additional settings required?