{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-node/issues/218","labels_url":"https://api.github.com/repos/swagger-api/swagger-node/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-node/issues/218/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-node/issues/218/events","html_url":"https://github.com/swagger-api/swagger-node/issues/218","id":87147153,"number":218,"title":"Invalid json in POST","user":{"login":"plingampally","id":4418607,"avatar_url":"https://avatars.githubusercontent.com/u/4418607?v=3","gravatar_id":"","url":"https://api.github.com/users/plingampally","html_url":"https://github.com/plingampally","followers_url":"https://api.github.com/users/plingampally/followers","following_url":"https://api.github.com/users/plingampally/following{/other_user}","gists_url":"https://api.github.com/users/plingampally/gists{/gist_id}","starred_url":"https://api.github.com/users/plingampally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plingampally/subscriptions","organizations_url":"https://api.github.com/users/plingampally/orgs","repos_url":"https://api.github.com/users/plingampally/repos","events_url":"https://api.github.com/users/plingampally/events{/privacy}","received_events_url":"https://api.github.com/users/plingampally/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T23:47:41Z","updated_at":"2015-06-11T03:24:13Z","closed_at":null,"body":"I'm having trouble getting a POST route working. The error i'm receiving is: `Error: invalid json\r\n    at parse (/Users/plingampally/XXXX/XXXX/XXXX/node_modules/swagger-express-mw/node_modules/swagger-node-runner/node_modules/swagger-tools/node_modules/body-parser/lib/types/json.js:79:15)`\r\n\r\nThis is happening even when I send in valid JSON or strings. My controller is just sending back a simple string without even looking at the body.    \r\n\r\nI've set up my swagger yaml like this:\r\n```yaml\r\n/errorcheck:\r\n    x-swagger-router-controller: errorcheck\r\n    post:\r\n      description: Runs an error check against a given test field \r\n      operationId: errorcheck\r\n      parameters:\r\n        - name: param1\r\n          in: body\r\n          description: description\r\n          required: false\r\n          schema:\r\n            type: string\r\n      responses:\r\n        \"200\":\r\n          description: Successs\r\n          schema:\r\n            type: string\r\n        default:\r\n          description: Error\r\n          schema: \r\n            $ref: \"#/definitions/ErrorResponse\" \r\n```\r\n\r\nI'd really appreciate an example of how to create a POST route. "},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-node/issues/comments/110985765","html_url":"https://github.com/swagger-api/swagger-node/issues/218#issuecomment-110985765","issue_url":"https://api.github.com/repos/swagger-api/swagger-node/issues/218","id":110985765,"user":{"login":"prabhatjha","id":353292,"avatar_url":"https://avatars.githubusercontent.com/u/353292?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhatjha","html_url":"https://github.com/prabhatjha","followers_url":"https://api.github.com/users/prabhatjha/followers","following_url":"https://api.github.com/users/prabhatjha/following{/other_user}","gists_url":"https://api.github.com/users/prabhatjha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhatjha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhatjha/subscriptions","organizations_url":"https://api.github.com/users/prabhatjha/orgs","repos_url":"https://api.github.com/users/prabhatjha/repos","events_url":"https://api.github.com/users/prabhatjha/events{/privacy}","received_events_url":"https://api.github.com/users/prabhatjha/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T03:24:13Z","updated_at":"2015-06-11T03:24:13Z","body":"Can you post your complete swagger and curl request pls? You can see a post example at http://playground.apistudio.io/bfdc2968-06fb-438a-9785-6134d3d87ed7# and when you click on try-it, you can see how payload is getting sent."}}