{"action":"created","issue":{"url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/8","repository_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi","labels_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/8/comments","events_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/8/events","html_url":"https://github.com/kogosoftwarellc/express-openapi/issues/8","id":134107987,"number":8,"title":"validation error for formData type boolean","user":{"login":"phillip-hall","id":11202918,"avatar_url":"https://avatars.githubusercontent.com/u/11202918?v=3","gravatar_id":"","url":"https://api.github.com/users/phillip-hall","html_url":"https://github.com/phillip-hall","followers_url":"https://api.github.com/users/phillip-hall/followers","following_url":"https://api.github.com/users/phillip-hall/following{/other_user}","gists_url":"https://api.github.com/users/phillip-hall/gists{/gist_id}","starred_url":"https://api.github.com/users/phillip-hall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillip-hall/subscriptions","organizations_url":"https://api.github.com/users/phillip-hall/orgs","repos_url":"https://api.github.com/users/phillip-hall/repos","events_url":"https://api.github.com/users/phillip-hall/events{/privacy}","received_events_url":"https://api.github.com/users/phillip-hall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-02-16T21:57:29Z","updated_at":"2016-02-16T22:55:29Z","closed_at":null,"body":"Given the following operation definition\r\n```\r\n{\r\n    post: {\r\n        summary: 'Application information',\r\n        operationId: 'info',\r\n        tags: ['/info'],\r\n        parameters: [\r\n            {\r\n                name: 'booleanParam',\r\n                in: 'formData',\r\n                required: true,\r\n                type: 'boolean',\r\n                default: false\r\n            }\r\n        ],\r\n        responses: {\r\n            200: {\r\n                description: 'Success',\r\n                schema: {\r\n                    $ref: '#/definitions/Success'\r\n                }\r\n            },\r\n            default: {\r\n                description: 'Error',\r\n                schema: {\r\n                    $ref: '#/definitions/Error'\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nand then calling using the following\r\n`curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: text/html' -d 'booleanParam=false' 'http://localhost:3200/api/info'`\r\n\r\nthe following error is returned\r\n`error:  status=400, errors=[path=booleanParam, errorCode=type.openapi.validation, message=instance.booleanParam is not of a type(s) boolean, location=body]`"},"comment":{"url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/comments/184909171","html_url":"https://github.com/kogosoftwarellc/express-openapi/issues/8#issuecomment-184909171","issue_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/8","id":184909171,"user":{"login":"jsdevel","id":2605980,"avatar_url":"https://avatars.githubusercontent.com/u/2605980?v=3","gravatar_id":"","url":"https://api.github.com/users/jsdevel","html_url":"https://github.com/jsdevel","followers_url":"https://api.github.com/users/jsdevel/followers","following_url":"https://api.github.com/users/jsdevel/following{/other_user}","gists_url":"https://api.github.com/users/jsdevel/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdevel/subscriptions","organizations_url":"https://api.github.com/users/jsdevel/orgs","repos_url":"https://api.github.com/users/jsdevel/repos","events_url":"https://api.github.com/users/jsdevel/events{/privacy}","received_events_url":"https://api.github.com/users/jsdevel/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T22:55:29Z","updated_at":"2016-02-16T22:55:29Z","body":"Thanks!"}}