NSwag is incorrectly generating query parameters for form data in the Swagger UI #1210
Nizar-Almshantaf
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an endpoint that takes a file from a form request but Swagger is being incorrectly generated, here is a simple snippet of the code.
PS: the endpoint is working through Postman (using form-data request)
here is the endpoint:
public async Task<DocumentDto> SendDocument([FromForm] CreateDocumentCommand command, ISender sender) { var res = await sender.Send(command); return res; }
here is the command:
`
public class CreateDocumentCommand : IRequest
{
}
`
and here is the generated UI for the endpoint
is the config.nswag is misconfigured or what could be the issue ?
Beta Was this translation helpful? Give feedback.
All reactions