{"action":"created","issue":{"url":"https://api.github.com/repos/jquense/yup/issues/74","repository_url":"https://api.github.com/repos/jquense/yup","labels_url":"https://api.github.com/repos/jquense/yup/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/jquense/yup/issues/74/comments","events_url":"https://api.github.com/repos/jquense/yup/issues/74/events","html_url":"https://github.com/jquense/yup/issues/74","id":195331413,"number":74,"title":"Conditionally required schema field","user":{"login":"web2style","id":2179726,"avatar_url":"https://avatars.githubusercontent.com/u/2179726?v=3","gravatar_id":"","url":"https://api.github.com/users/web2style","html_url":"https://github.com/web2style","followers_url":"https://api.github.com/users/web2style/followers","following_url":"https://api.github.com/users/web2style/following{/other_user}","gists_url":"https://api.github.com/users/web2style/gists{/gist_id}","starred_url":"https://api.github.com/users/web2style/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web2style/subscriptions","organizations_url":"https://api.github.com/users/web2style/orgs","repos_url":"https://api.github.com/users/web2style/repos","events_url":"https://api.github.com/users/web2style/events{/privacy}","received_events_url":"https://api.github.com/users/web2style/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-13T18:28:59Z","updated_at":"2016-12-13T20:04:51Z","closed_at":null,"body":"Is it possible? Smth like this:\r\n```\r\nconst schema = yup.object({\r\n  username: yup.string().conditionallyRequired(someVar === anotherVar)\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/jquense/yup/issues/comments/266846211","html_url":"https://github.com/jquense/yup/issues/74#issuecomment-266846211","issue_url":"https://api.github.com/repos/jquense/yup/issues/74","id":266846211,"user":{"login":"jquense","id":339286,"avatar_url":"https://avatars.githubusercontent.com/u/339286?v=3","gravatar_id":"","url":"https://api.github.com/users/jquense","html_url":"https://github.com/jquense","followers_url":"https://api.github.com/users/jquense/followers","following_url":"https://api.github.com/users/jquense/following{/other_user}","gists_url":"https://api.github.com/users/jquense/gists{/gist_id}","starred_url":"https://api.github.com/users/jquense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquense/subscriptions","organizations_url":"https://api.github.com/users/jquense/orgs","repos_url":"https://api.github.com/users/jquense/repos","events_url":"https://api.github.com/users/jquense/events{/privacy}","received_events_url":"https://api.github.com/users/jquense/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T20:04:51Z","updated_at":"2016-12-13T20:04:51Z","body":"not sure I understand the situation...what is the variable where does it come from? "}}
{"actor":{"display_login":"jquense"}}