You can modify the swagger definition by changing the "in" value from "body" to "formData" and updating the "schema" property to use the "type" of "file" instead of "$ref".
This should look like:
patch:
tags: [EdmFileSet]
summary: Update entity in EdmFileSet
description: Update entity in EdmFileSet
operationId: UpdateEdmFileSet
produces: [application/json]
parameters:
- in: formData
name: FileData
description: The file to be uploaded
required: true
type: file
This way, the parameter will be sent as "form data" instead of in the request body, and the client will know it should send the file contents as raw data rather than a JSON object.