{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/joi/issues/645","labels_url":"https://api.github.com/repos/hapijs/joi/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/joi/issues/645/comments","events_url":"https://api.github.com/repos/hapijs/joi/issues/645/events","html_url":"https://github.com/hapijs/joi/issues/645","id":76416083,"number":645,"title":"Mutate original object (Option)","user":{"login":"rill-js","id":12077642,"avatar_url":"https://avatars.githubusercontent.com/u/12077642?v=3","gravatar_id":"","url":"https://api.github.com/users/rill-js","html_url":"https://github.com/rill-js","followers_url":"https://api.github.com/users/rill-js/followers","following_url":"https://api.github.com/users/rill-js/following{/other_user}","gists_url":"https://api.github.com/users/rill-js/gists{/gist_id}","starred_url":"https://api.github.com/users/rill-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rill-js/subscriptions","organizations_url":"https://api.github.com/users/rill-js/orgs","repos_url":"https://api.github.com/users/rill-js/repos","events_url":"https://api.github.com/users/rill-js/events{/privacy}","received_events_url":"https://api.github.com/users/rill-js/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-14T16:36:39Z","updated_at":"2015-05-14T22:27:38Z","closed_at":null,"body":"Currently it looks like joi creates a copy of the object being validated and returns that in the validate function.\r\n\r\nWould it be possible to add an option that did not do these copies so that the output object would be the same as the input (with mutations)?"},"comment":{"url":"https://api.github.com/repos/hapijs/joi/issues/comments/102187495","html_url":"https://github.com/hapijs/joi/issues/645#issuecomment-102187495","issue_url":"https://api.github.com/repos/hapijs/joi/issues/645","id":102187495,"user":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T22:27:38Z","updated_at":"2015-05-14T22:27:38Z","body":"I don't understand the need, please clarify why you want that."}}