{"action":"closed","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2572","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2572/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2572/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2572/events","html_url":"https://github.com/hapijs/hapi/issues/2572","id":82465343,"number":2572,"title":"Unable to validate empty text body","user":{"login":"matthieusieben","id":813661,"avatar_url":"https://avatars.githubusercontent.com/u/813661?v=3","gravatar_id":"","url":"https://api.github.com/users/matthieusieben","html_url":"https://github.com/matthieusieben","followers_url":"https://api.github.com/users/matthieusieben/followers","following_url":"https://api.github.com/users/matthieusieben/following{/other_user}","gists_url":"https://api.github.com/users/matthieusieben/gists{/gist_id}","starred_url":"https://api.github.com/users/matthieusieben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthieusieben/subscriptions","organizations_url":"https://api.github.com/users/matthieusieben/orgs","repos_url":"https://api.github.com/users/matthieusieben/repos","events_url":"https://api.github.com/users/matthieusieben/events{/privacy}","received_events_url":"https://api.github.com/users/matthieusieben/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T15:07:17Z","updated_at":"2015-05-29T19:40:48Z","closed_at":"2015-05-29T19:40:48Z","body":"I have a route that has:\r\n```\r\nconfig: {\r\n\tvalidate: {\r\n\t\tpayload: Joi.string().allow(''),\r\n\t},\r\n},\r\n```\r\nAnd when I send requests with an empty body and a content-type = 'text/plain' I get the following error:\r\n```\r\n{\r\n  \"statusCode\": 415,\r\n  \"error\": \"Unsupported Media Type\",\r\n  \"message\": \"payload must represent an object\"\r\n}\r\n```\r\nWhy isn't plain/text supported by validation?"}}