{"action":"created","issue":{"url":"https://api.github.com/repos/Mermade/swagger2openapi/issues/35","repository_url":"https://api.github.com/repos/Mermade/swagger2openapi","labels_url":"https://api.github.com/repos/Mermade/swagger2openapi/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/Mermade/swagger2openapi/issues/35/comments","events_url":"https://api.github.com/repos/Mermade/swagger2openapi/issues/35/events","html_url":"https://github.com/Mermade/swagger2openapi/issues/35","id":271396869,"number":35,"title":"File FormData parameter is not correctly converted into OAS v3","user":{"login":"jmpascal","id":792752,"avatar_url":"https://avatars1.githubusercontent.com/u/792752?v=4","gravatar_id":"","url":"https://api.github.com/users/jmpascal","html_url":"https://github.com/jmpascal","followers_url":"https://api.github.com/users/jmpascal/followers","following_url":"https://api.github.com/users/jmpascal/following{/other_user}","gists_url":"https://api.github.com/users/jmpascal/gists{/gist_id}","starred_url":"https://api.github.com/users/jmpascal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmpascal/subscriptions","organizations_url":"https://api.github.com/users/jmpascal/orgs","repos_url":"https://api.github.com/users/jmpascal/repos","events_url":"https://api.github.com/users/jmpascal/events{/privacy}","received_events_url":"https://api.github.com/users/jmpascal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"MikeRalphson","id":21603,"avatar_url":"https://avatars0.githubusercontent.com/u/21603?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeRalphson","html_url":"https://github.com/MikeRalphson","followers_url":"https://api.github.com/users/MikeRalphson/followers","following_url":"https://api.github.com/users/MikeRalphson/following{/other_user}","gists_url":"https://api.github.com/users/MikeRalphson/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeRalphson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeRalphson/subscriptions","organizations_url":"https://api.github.com/users/MikeRalphson/orgs","repos_url":"https://api.github.com/users/MikeRalphson/repos","events_url":"https://api.github.com/users/MikeRalphson/events{/privacy}","received_events_url":"https://api.github.com/users/MikeRalphson/received_events","type":"User","site_admin":false},"assignees":[{"login":"MikeRalphson","id":21603,"avatar_url":"https://avatars0.githubusercontent.com/u/21603?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeRalphson","html_url":"https://github.com/MikeRalphson","followers_url":"https://api.github.com/users/MikeRalphson/followers","following_url":"https://api.github.com/users/MikeRalphson/following{/other_user}","gists_url":"https://api.github.com/users/MikeRalphson/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeRalphson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeRalphson/subscriptions","organizations_url":"https://api.github.com/users/MikeRalphson/orgs","repos_url":"https://api.github.com/users/MikeRalphson/repos","events_url":"https://api.github.com/users/MikeRalphson/events{/privacy}","received_events_url":"https://api.github.com/users/MikeRalphson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-11-06T08:44:23Z","updated_at":"2017-11-09T10:10:56Z","closed_at":"2017-11-09T10:10:56Z","author_association":"NONE","body":"Aloah,\r\n\r\nI currently try to convert my Swagger v2 Model definition into OpenApi Specification v3.\r\nI used https://openapi-converter.herokuapp.com/ to transform my file into v3.\r\nAfter checking some values it appears parameters in formData with type file are not converted into OAS format. (see update 1)\r\n\r\n### Checklist\r\n\r\n- [X] Conversion: I have checked my source definition is valid OpenAPI 2.0\r\n\r\n### Detailed Description\r\nIn my specification file I have the following parameter definition\r\n```yaml\r\n parameters:\r\n      - name: \"file\"\r\n        in: \"formData\"\r\n        description: \"Attachment file\"\r\n        required: false\r\n        type: \"file\"\r\n```\r\n\r\nAfter conversion this parameter has disappeared.\r\nI would have expect something like\r\n\r\n```yaml\r\n requestBody:\r\n        content:\r\n          multipart/form-data:\r\n            schema:\r\n              type: object\r\n              properties:\r\n                file:\r\n                  description: 'Attachment File'\r\n                  type: string\r\n                  format: binary\r\n```\r\n\r\nIs it my interpretation of OAS v3 is wrong or a missing translation ?\r\n\r\nThanks in advance.\r\n\r\nNB: For testing purpose:\r\n[swagger-content.txt](https://github.com/Mermade/swagger2openapi/files/1445502/swagger-content.txt)\r\n[oas-content.txt](https://github.com/Mermade/swagger2openapi/files/1445509/oas-content.txt)\r\n\r\n**Update 1:**\r\nAfter some investigation it appears the work is good if there's no other multipart than the file.\r\nBut\r\nThe translation is wrong if the multipart request contains a file attachment + others simple parameters (which is the case in my example)\r\n\r\n#### Other stuff\r\n\r\nThanks for the excellent work !\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Mermade/swagger2openapi/issues/comments/343107966","html_url":"https://github.com/Mermade/swagger2openapi/issues/35#issuecomment-343107966","issue_url":"https://api.github.com/repos/Mermade/swagger2openapi/issues/35","id":343107966,"user":{"login":"MikeRalphson","id":21603,"avatar_url":"https://avatars0.githubusercontent.com/u/21603?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeRalphson","html_url":"https://github.com/MikeRalphson","followers_url":"https://api.github.com/users/MikeRalphson/followers","following_url":"https://api.github.com/users/MikeRalphson/following{/other_user}","gists_url":"https://api.github.com/users/MikeRalphson/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeRalphson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeRalphson/subscriptions","organizations_url":"https://api.github.com/users/MikeRalphson/orgs","repos_url":"https://api.github.com/users/MikeRalphson/repos","events_url":"https://api.github.com/users/MikeRalphson/events{/privacy}","received_events_url":"https://api.github.com/users/MikeRalphson/received_events","type":"User","site_admin":false},"created_at":"2017-11-09T10:10:56Z","updated_at":"2017-11-09T10:10:56Z","author_association":"CONTRIBUTOR","body":"web-converter updated. Please chase if this doesn't fix the issue for you."}}
{"actor":{"display_login":"MikeRalphson"}}