I'm stuck trying to get Swashbuckle 5 to generate full help pages for ApiController with a Post request using the multipart / form-data options. The help page for the action appears in the browser, but there is no information about the parameters passed in the form. I created an operation filter and included it in SwaggerConfig, a web page that includes URI parameters, return type, and other information derived from XML comments displayed on browser help pages; however, nothing is specified in the operating parameter parameter, and the help page does not contain information about the parameters.
Something is missing for me. Are there any suggestions that I might have missed?
Operation Filter Code:
public class AddFormDataUploadParamTypes : IOperationFilter { public void Apply(Operation operation, SchemaRegistry schemaRegistry, ApiDescription apiDescription) { if (operation.operationId == "Documents_Upload") { operation.consumes.Add("multipart/form-data"); operation.parameters = new[] { new Parameter { name = "anotherid", @in = "formData", description = "Optional identifier associated with the document.", required = false, type = "string", format = "uuid" }, new Parameter { name = "documentid", @in = "formData", description = "The document identifier of the slot reserved for the document.", required = false, type = "string", format = "uuid" }, new Parameter { name = "documenttype", @in = "formData", description = "Specifies the kind of document being uploaded. This is not a file name extension.", required = true, type = "string" }, new Parameter { name = "emailfrom", @in = "formData", description = "A optional email origination address used in association with the document if it is emailed to a receiver.", required = false, type = "string" }, new Parameter { name = "emailsubject", @in = "formData", description = "An optional email subject line used in association with the document if it is emailed to a receiver.", required = false, type = "string" }, new Parameter { name = "file", @in = "formData", description = "File to upload.", required = true, type = "file" } }; } } }