I'm using Swashbuckle 5.1.5 for my rest API for upload images, but form data parameters Data Type is coming up as undefined. How do you set the Data Type?
operation.parameters.Add(new Parameter
{
name = "file",
required = true,
type = "file",
@in = "formData"
}
This should be working fine. I am using the latest swashbuckle version. Can you try with the latest version