Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for [FromForm] in Minimal API #4626

Open
KennethHoff opened this issue Dec 5, 2023 · 8 comments
Open

Support for [FromForm] in Minimal API #4626

KennethHoff opened this issue Dec 5, 2023 · 8 comments

Comments

@KennethHoff
Copy link

KennethHoff commented Dec 5, 2023

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.

@KennethHoff KennethHoff changed the title Support for [FromForm] and Minimal API in Support for [FromForm] and Minimal API in .Net 8 Dec 5, 2023
@KennethHoff KennethHoff changed the title Support for [FromForm] and Minimal API in .Net 8 Support for [FromForm] in Minimal API Dec 5, 2023
@descatal
Copy link

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

@lightel
Copy link

lightel commented Feb 14, 2024

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
Copy link

alsami commented Apr 5, 2024

Are there any news on this?

@KennethHoff
Copy link
Author

KennethHoff commented Apr 5, 2024

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

@alsami
Copy link

alsami commented Apr 5, 2024

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
Copy link

Please fix this!

@Nizar-Almshantaf
Copy link

any update on this issue ?

@Atulin
Copy link

Atulin commented Aug 30, 2024

Love me a blocking dead issue

Atulin added a commit to Genfic/Ogma that referenced this issue Aug 30, 2024
- Preemptively made comment handlers use primary constructors to make move to `Immediate.Apis` easier
- Partially moved ratings to `Immediate.Apis`, blocked by RicoSuter/NSwag#4626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants