RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.69k stars 1.24k forks source link

Support for [FromForm] in Minimal API #4626

Open KennethHoff opened 9 months ago

KennethHoff commented 9 months ago

Hi, I'm creating a new .Net 8 minimal API-based web API and I'm having trouble getting NSwag to generate multipart/form-data schemas - they're generating as query parameters instead.

This works with Swashbuckle despite not having an update almost a year.

descatal commented 9 months ago

Also encountering the same issue, would like this to be fixed if possible.

lightel commented 7 months ago

Hi, I'm experiencing the same issue. Is there any advice or direction on where to look to make it work with minimal API? It seems it works correctly with the controllers though.

alsami commented 5 months ago

Are there any news on this?

KennethHoff commented 5 months ago

Personally I swapped to Swashbuckle, and will swap over to the built-in support in .Net 9 as soon as possible.

alsami commented 5 months ago

Yeah, Swashbuckle does not support nullable reference types fully - in the future the built-in functionality may be a viable solution, but that won't be happening with .NET 9. Migrating existing projects may also not be that easy.

jezzsantos commented 4 months ago

Please fix this!

Nizar-Almshantaf commented 4 weeks ago

any update on this issue ?

Atulin commented 2 weeks ago

Love me a blocking dead issue