{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/joi/issues/601","labels_url":"https://api.github.com/repos/hapijs/joi/issues/601/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/joi/issues/601/comments","events_url":"https://api.github.com/repos/hapijs/joi/issues/601/events","html_url":"https://github.com/hapijs/joi/issues/601","id":60637536,"number":601,"title":"Error: stripUnknown should be one of required, optional, forbidden, ignore","user":{"login":"ChitaGideon","id":1167456,"avatar_url":"https://avatars.githubusercontent.com/u/1167456?v=3","gravatar_id":"","url":"https://api.github.com/users/ChitaGideon","html_url":"https://github.com/ChitaGideon","followers_url":"https://api.github.com/users/ChitaGideon/followers","following_url":"https://api.github.com/users/ChitaGideon/following{/other_user}","gists_url":"https://api.github.com/users/ChitaGideon/gists{/gist_id}","starred_url":"https://api.github.com/users/ChitaGideon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChitaGideon/subscriptions","organizations_url":"https://api.github.com/users/ChitaGideon/orgs","repos_url":"https://api.github.com/users/ChitaGideon/repos","events_url":"https://api.github.com/users/ChitaGideon/events{/privacy}","received_events_url":"https://api.github.com/users/ChitaGideon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T10:25:34Z","updated_at":"2015-03-11T10:29:26Z","closed_at":null,"body":"when i use validate like this\r\n```\r\n  Joi.validate({\r\n    nameBase: '123'\r\n  }, Joi.object().keys({\r\n    nameBase: nameBase.required()\r\n  }), {\r\n    presence: \"forbidden\",\r\n    stripUnknown: false\r\n  }, function(err, r){\r\n    return console.log('arguments', err, r);\r\n  });\r\n```\r\nthen Error  occupy\r\nError: stripUnknown should be one of required, optional, forbidden, ignore\r\n    at Object.exports.assert (/Users/Pamakids-Dev/tudou/tudou2/node_modules/joi/node_modules/hoek/lib/index.js:678:11)\r\n    at Object.internals.checkOptions (/Users/Pamakids-Dev/tudou/tudou2/node_modules/joi/lib/any.js:59:18)\r\n    at internals.Any._validateWithOptions (/Users/Pamakids-Dev/tudou/tudou2/node_modules/joi/lib/any.js:593:19)\r\n    at root.validate (/Users/Pamakids-Dev/tudou/tudou2/node_modules/joi/lib/index.js:102:23)\r\n    at Object.<anonymous> (/Users/Pamakids-Dev/tudou/tudou2/cloud/lib/joi:184:12)\r\n    at Object.<anonymous> (/Users/Pamakids-Dev/tudou/tudou2/cloud/lib/joi:216:4)\r\n    at Module._compile (module.js:456:26)\r\n    at requireFromFile (/usr/local/lib/node_modules/avoscloud-code/lib/cloud_code.js:349:7)\r\n"},"comment":{"url":"https://api.github.com/repos/hapijs/joi/issues/comments/78238594","html_url":"https://github.com/hapijs/joi/issues/601#issuecomment-78238594","issue_url":"https://api.github.com/repos/hapijs/joi/issues/601","id":78238594,"user":{"login":"ChitaGideon","id":1167456,"avatar_url":"https://avatars.githubusercontent.com/u/1167456?v=3","gravatar_id":"","url":"https://api.github.com/users/ChitaGideon","html_url":"https://github.com/ChitaGideon","followers_url":"https://api.github.com/users/ChitaGideon/followers","following_url":"https://api.github.com/users/ChitaGideon/following{/other_user}","gists_url":"https://api.github.com/users/ChitaGideon/gists{/gist_id}","starred_url":"https://api.github.com/users/ChitaGideon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChitaGideon/subscriptions","organizations_url":"https://api.github.com/users/ChitaGideon/orgs","repos_url":"https://api.github.com/users/ChitaGideon/repos","events_url":"https://api.github.com/users/ChitaGideon/events{/privacy}","received_events_url":"https://api.github.com/users/ChitaGideon/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T10:29:26Z","updated_at":"2015-03-11T10:29:26Z","body":"And when I set stripUnknow to 'required',\r\n\r\nError occured:Error: stripUnknown should be of type boolean\r\n    at Object.exports.assert (/Users/Pamakids-Dev/tudou/tudou2/node_modules/joi/node_modules/hoek/lib/index.js:678:11)\r\n"}}