{"action":"created","issue":{"url":"https://api.github.com/repos/BlueOakJS/blueoak-server/issues/72","repository_url":"https://api.github.com/repos/BlueOakJS/blueoak-server","labels_url":"https://api.github.com/repos/BlueOakJS/blueoak-server/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/BlueOakJS/blueoak-server/issues/72/comments","events_url":"https://api.github.com/repos/BlueOakJS/blueoak-server/issues/72/events","html_url":"https://github.com/BlueOakJS/blueoak-server/issues/72","id":182021460,"number":72,"title":"Swagger handling breaks on x-www-form-urlencoded bodies","user":{"login":"jeff-lee-ps","id":10424583,"avatar_url":"https://avatars.githubusercontent.com/u/10424583?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-lee-ps","html_url":"https://github.com/jeff-lee-ps","followers_url":"https://api.github.com/users/jeff-lee-ps/followers","following_url":"https://api.github.com/users/jeff-lee-ps/following{/other_user}","gists_url":"https://api.github.com/users/jeff-lee-ps/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-lee-ps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-lee-ps/subscriptions","organizations_url":"https://api.github.com/users/jeff-lee-ps/orgs","repos_url":"https://api.github.com/users/jeff-lee-ps/repos","events_url":"https://api.github.com/users/jeff-lee-ps/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-lee-ps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BlueOakJS/blueoak-server/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/BlueOakJS/blueoak-server/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T13:57:48Z","updated_at":"2016-10-10T14:10:02Z","closed_at":null,"body":"I was playing with the blueoak-server 2.4.3 + swagger definitions this morning and ran into a problem related to defining a formData parameter.\r\n\r\nconsumes:\r\n        - application/x-www-form-urlencoded\r\nparameters:\r\n        - name: test2\r\n          in: formData\r\n          description: test param\r\n          required: true\r\n          type: string\r\n\r\nError on console:\r\ndebug: -swagger - Wiring up route post /other2 to other.other2Set\r\nTypeError: Cannot read property 'fields' of undefined\r\n    at registerRoute (/Users/jefflee/project/node_modules/blueoak-server/handlers/_swagger.js:247:42)\r\n\r\nWhen I look at the _swagger.js file, the problem is it's trying to use _upload.fields inside a containsFormData() block; however, _upload is only set in a containsMultiPartFormData() block."},"comment":{"url":"https://api.github.com/repos/BlueOakJS/blueoak-server/issues/comments/252631864","html_url":"https://github.com/BlueOakJS/blueoak-server/issues/72#issuecomment-252631864","issue_url":"https://api.github.com/repos/BlueOakJS/blueoak-server/issues/72","id":252631864,"user":{"login":"seanpk","id":5642399,"avatar_url":"https://avatars.githubusercontent.com/u/5642399?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpk","html_url":"https://github.com/seanpk","followers_url":"https://api.github.com/users/seanpk/followers","following_url":"https://api.github.com/users/seanpk/following{/other_user}","gists_url":"https://api.github.com/users/seanpk/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpk/subscriptions","organizations_url":"https://api.github.com/users/seanpk/orgs","repos_url":"https://api.github.com/users/seanpk/repos","events_url":"https://api.github.com/users/seanpk/events{/privacy}","received_events_url":"https://api.github.com/users/seanpk/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T14:10:02Z","updated_at":"2016-10-10T14:10:02Z","body":"@ryshep111 - I know you've been looking at this. Please mention this in the eventual PR."}}
{"actor":{"display_login":"seanpk"}}