{"action":"created","issue":{"url":"https://api.github.com/repos/timothycrosley/hug/issues/341","repository_url":"https://api.github.com/repos/timothycrosley/hug","labels_url":"https://api.github.com/repos/timothycrosley/hug/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/timothycrosley/hug/issues/341/comments","events_url":"https://api.github.com/repos/timothycrosley/hug/issues/341/events","html_url":"https://github.com/timothycrosley/hug/issues/341","id":164326362,"number":341,"title":"hug.types.Text + application/json + null results in \"None\"","user":{"login":"vortec","id":864772,"avatar_url":"https://avatars.githubusercontent.com/u/864772?v=3","gravatar_id":"","url":"https://api.github.com/users/vortec","html_url":"https://github.com/vortec","followers_url":"https://api.github.com/users/vortec/followers","following_url":"https://api.github.com/users/vortec/following{/other_user}","gists_url":"https://api.github.com/users/vortec/gists{/gist_id}","starred_url":"https://api.github.com/users/vortec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortec/subscriptions","organizations_url":"https://api.github.com/users/vortec/orgs","repos_url":"https://api.github.com/users/vortec/repos","events_url":"https://api.github.com/users/vortec/events{/privacy}","received_events_url":"https://api.github.com/users/vortec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/timothycrosley/hug/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-07T14:43:18Z","updated_at":"2016-08-16T09:57:44Z","closed_at":null,"body":"If you have this endpoint:\r\n```\r\n@hug.post('/test')\r\ndef test(a: hug.types.Text()):\r\n    return (a, str(type(a)))\r\n```\r\n\r\nand send JSON-data via curl: ``curl -X POST -H \"Content-type: application/json\" --data '{\"a\": null}``, you end up with this result: ``[\"None\", \"<class 'str'>\"]`` \r\n\r\nI don't know what is supposed to happen, but I think an error would be appropriate here."},"comment":{"url":"https://api.github.com/repos/timothycrosley/hug/issues/comments/240058832","html_url":"https://github.com/timothycrosley/hug/issues/341#issuecomment-240058832","issue_url":"https://api.github.com/repos/timothycrosley/hug/issues/341","id":240058832,"user":{"login":"vortec","id":864772,"avatar_url":"https://avatars.githubusercontent.com/u/864772?v=3","gravatar_id":"","url":"https://api.github.com/users/vortec","html_url":"https://github.com/vortec","followers_url":"https://api.github.com/users/vortec/followers","following_url":"https://api.github.com/users/vortec/following{/other_user}","gists_url":"https://api.github.com/users/vortec/gists{/gist_id}","starred_url":"https://api.github.com/users/vortec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortec/subscriptions","organizations_url":"https://api.github.com/users/vortec/orgs","repos_url":"https://api.github.com/users/vortec/repos","events_url":"https://api.github.com/users/vortec/events{/privacy}","received_events_url":"https://api.github.com/users/vortec/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T09:57:44Z","updated_at":"2016-08-16T09:57:44Z","body":"Since `application/json` is passed as Content-Type, hug should convert this to `None`."}}
{"actor":{"display_login":"vortec"}}