Skip to content

Multipart messages do not support setting content-type #636

@guy4286

Description

@guy4286

I have a multipart message that I am documenting with Swagger 1.3.4 for a file upload operation.

I've defined two parameters:

  1. file - the file to upload
  2. data - the JSON or XML message to describe metadata about the file we are uploading.

For the first parameter Swagger lets me select a file with the standard "Choose File" button.
For the second, I can type my message content, but I cannot select a content type for this part. When the message is sent, no content type is specified for this part.

This is a problem because I want to support both JSON and XML, but implementations will have no way of knowing how to parse the message.

Please see the screenshot for clarification.

swaggerbugreport

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions