{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1938","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1938/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1938/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1938/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1938","id":130743414,"number":1938,"title":"multipart/form-data parameters sent as \"application/x-www-form-urlencoded\"","user":{"login":"jftregor","id":6428850,"avatar_url":"https://avatars.githubusercontent.com/u/6428850?v=3","gravatar_id":"","url":"https://api.github.com/users/jftregor","html_url":"https://github.com/jftregor","followers_url":"https://api.github.com/users/jftregor/followers","following_url":"https://api.github.com/users/jftregor/following{/other_user}","gists_url":"https://api.github.com/users/jftregor/gists{/gist_id}","starred_url":"https://api.github.com/users/jftregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jftregor/subscriptions","organizations_url":"https://api.github.com/users/jftregor/orgs","repos_url":"https://api.github.com/users/jftregor/repos","events_url":"https://api.github.com/users/jftregor/events{/privacy}","received_events_url":"https://api.github.com/users/jftregor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T16:51:36Z","updated_at":"2016-02-02T23:01:35Z","closed_at":null,"body":"Hello,\r\n\r\nI'm currently writing some documentation about a REST service where some POST request requires a long string parameter to be handled as a multipart/form-data string.\r\nUnfortunately, Swagger-UI sends this string parameter as  \"application/x-www-form-urlencoded\" form and, of course, the service does not accept it.\r\n\r\nHere is a minimalistic swagger YAML file reproducing this behavior:\r\n\r\n```\r\nswagger: '2.0'\r\ninfo:\r\n  version: 0.0.0\r\n  title: Simple API\r\nhost: '127.0.0.1:8080'\r\npaths:\r\n  /:\r\n    post:\r\n      consumes:\r\n        - multipart/form-data\r\n      parameters:\r\n        - in: formData\r\n          name: key\r\n          required: false\r\n          type: string\r\n          description: some string parameter\r\n          default: \"some value sent as multipart form data\"\r\n      responses:\r\n        200:\r\n          description: OK\r\n```\r\n\r\nI found a workaround, providing this modified YAML where I added some fake `file` parameter asking people who read my doc not to use it :-(\r\n\r\n```\r\nswagger: '2.0'\r\ninfo:\r\n  version: 0.0.0\r\n  title: Simple API\r\nhost: '127.0.0.1:8080'\r\npaths:\r\n  /:\r\n    post:\r\n      consumes:\r\n        - multipart/form-data\r\n      parameters:\r\n        - in: formData\r\n          name: key\r\n          required: false\r\n          type: string\r\n          description: some string parameter\r\n          default: \"some value sent as multipart form data\"\r\n        - in: formData\r\n          name: fake\r\n          required: false\r\n          type: file\r\n          description: DO NOT USE, this is a workaround for Swagger-UI (otherwise above parameter is not sent as multipart/form-data)\r\n      responses:\r\n        200:\r\n          description: OK\r\n```\r\n\r\nIs there something wrong or am I missing something here ?\r\nBTW, I tried this on 2.1.3 and 2.1.4 versions...\r\n\r\nRegards\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/178875160","html_url":"https://github.com/swagger-api/swagger-ui/issues/1938#issuecomment-178875160","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1938","id":178875160,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T23:01:35Z","updated_at":"2016-02-02T23:01:35Z","body":"You're doing fine, this is a bug."}}