{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/584","labels_url":"https://api.github.com/repos/elixir-lang/ecto/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/584/comments","events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/584/events","html_url":"https://github.com/elixir-lang/ecto/issues/584","id":73355079,"number":584,"title":"validate_unique should be resilient to nil in the :scope attributes if they are required.","user":{"login":"drewolson","id":3536,"avatar_url":"https://avatars.githubusercontent.com/u/3536?v=3","gravatar_id":"","url":"https://api.github.com/users/drewolson","html_url":"https://github.com/drewolson","followers_url":"https://api.github.com/users/drewolson/followers","following_url":"https://api.github.com/users/drewolson/following{/other_user}","gists_url":"https://api.github.com/users/drewolson/gists{/gist_id}","starred_url":"https://api.github.com/users/drewolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewolson/subscriptions","organizations_url":"https://api.github.com/users/drewolson/orgs","repos_url":"https://api.github.com/users/drewolson/repos","events_url":"https://api.github.com/users/drewolson/events{/privacy}","received_events_url":"https://api.github.com/users/drewolson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-05T16:01:45Z","updated_at":"2015-05-05T19:22:44Z","closed_at":null,"body":"Currently, if the attribute provided to `validate_unique` is both a required attribute and `nil`, `validate_unique` will not run. However, if an attribute provided to the `:scope` option is both required and `nil`, the function raises and exception. I believe it should not run in this case as well."},"comment":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments/99192389","html_url":"https://github.com/elixir-lang/ecto/issues/584#issuecomment-99192389","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/584","id":99192389,"user":{"login":"drewolson","id":3536,"avatar_url":"https://avatars.githubusercontent.com/u/3536?v=3","gravatar_id":"","url":"https://api.github.com/users/drewolson","html_url":"https://github.com/drewolson","followers_url":"https://api.github.com/users/drewolson/followers","following_url":"https://api.github.com/users/drewolson/following{/other_user}","gists_url":"https://api.github.com/users/drewolson/gists{/gist_id}","starred_url":"https://api.github.com/users/drewolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewolson/subscriptions","organizations_url":"https://api.github.com/users/drewolson/orgs","repos_url":"https://api.github.com/users/drewolson/repos","events_url":"https://api.github.com/users/drewolson/events{/privacy}","received_events_url":"https://api.github.com/users/drewolson/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T19:22:44Z","updated_at":"2015-05-05T19:22:44Z","body":"This seems reasonable to me."}}