Skip to content

curl -F bug #3198

@willin

Description

@willin

When reporting an issue, please provide the following details:

  • swagger-ui version

3.0.10

  • a swagger file reproducing the issue

https://github.com/swagger-api/swagger-ui/blob/master/src/core/curlify.js#L21

'/demo/upload': {
  post: {
    responses: {
      200: {
        description: "Success"
      }
    },
    consumes: [
      "multipart/form-data"
    ],
      parameters: [
        {
          type: "string",
          maxLength: 64,
          description: "登录 Auth Token",
          name: "auth",
          in: "formData"
        },
        {
          type: "file",
          description: "要上传的文件",
          name: "file",
          in: "formData",
          'x-mimetype': "image/jpeg, image/png"
        }
      ],
        tags: [
          "demo"
        ]
  }
}

wx20170607-142011

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions