{"action":"created","issue":{"url":"https://api.github.com/repos/dry-rb/dry-validation/issues/253","repository_url":"https://api.github.com/repos/dry-rb/dry-validation","labels_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/253/comments","events_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/253/events","html_url":"https://github.com/dry-rb/dry-validation/issues/253","id":177052100,"number":253,"title":"Consider allowing anonymous rules","user":{"login":"dgollahon","id":4211073,"avatar_url":"https://avatars.githubusercontent.com/u/4211073?v=3","gravatar_id":"","url":"https://api.github.com/users/dgollahon","html_url":"https://github.com/dgollahon","followers_url":"https://api.github.com/users/dgollahon/followers","following_url":"https://api.github.com/users/dgollahon/following{/other_user}","gists_url":"https://api.github.com/users/dgollahon/gists{/gist_id}","starred_url":"https://api.github.com/users/dgollahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgollahon/subscriptions","organizations_url":"https://api.github.com/users/dgollahon/orgs","repos_url":"https://api.github.com/users/dgollahon/repos","events_url":"https://api.github.com/users/dgollahon/events{/privacy}","received_events_url":"https://api.github.com/users/dgollahon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dry-rb/dry-validation/labels/discussion","name":"discussion","color":"fbca04"},{"url":"https://api.github.com/repos/dry-rb/dry-validation/labels/feature","name":"feature","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dry-rb/dry-validation/milestones/4","html_url":"https://github.com/dry-rb/dry-validation/milestones/1.0.0","labels_url":"https://api.github.com/repos/dry-rb/dry-validation/milestones/4/labels","id":1873374,"number":4,"title":"1.0.0","description":null,"creator":{"login":"solnic","id":1066,"avatar_url":"https://avatars.githubusercontent.com/u/1066?v=3","gravatar_id":"","url":"https://api.github.com/users/solnic","html_url":"https://github.com/solnic","followers_url":"https://api.github.com/users/solnic/followers","following_url":"https://api.github.com/users/solnic/following{/other_user}","gists_url":"https://api.github.com/users/solnic/gists{/gist_id}","starred_url":"https://api.github.com/users/solnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solnic/subscriptions","organizations_url":"https://api.github.com/users/solnic/orgs","repos_url":"https://api.github.com/users/solnic/repos","events_url":"https://api.github.com/users/solnic/events{/privacy}","received_events_url":"https://api.github.com/users/solnic/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2016-07-09T05:35:51Z","updated_at":"2016-09-15T03:51:59Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-09-14T23:48:30Z","updated_at":"2016-09-17T00:14:54Z","closed_at":null,"body":"I had a use-case for this today and discussed it in the gitter:\r\n\r\n> Daniel Gollahon @dgollahon 10:02\r\nHi. Is there a way to create anonymous rules in dry-validations? Or do i have to specify them as:\r\nrule(name: %i[args])\r\nI'm not saying this should be a feature, just curious if it exists. I have a case where I'm validating something but do not at all care about the error messages, only whether or not the thing is valid. I also use mutant in CI and it complains that it can rename the argument name__mutant__. I can expose the schema and expect something about it to kill the mutant, but if there already happens to be a way to define the rule anonymously, that'd be cool.\r\n>\r\n> Piotr Solnica @solnic 16:26\r\n@dgollahon this is an interesting use-case that I haven’t thought about, could you please report an issue about this?\r\n\r\nIt might be cool if there was a default rule name based off of the names of the dependent keys. Again, more for discussion as to whether others might have a use for this than \"please add this\". "},"comment":{"url":"https://api.github.com/repos/dry-rb/dry-validation/issues/comments/247735998","html_url":"https://github.com/dry-rb/dry-validation/issues/253#issuecomment-247735998","issue_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/253","id":247735998,"user":{"login":"dgollahon","id":4211073,"avatar_url":"https://avatars.githubusercontent.com/u/4211073?v=3","gravatar_id":"","url":"https://api.github.com/users/dgollahon","html_url":"https://github.com/dgollahon","followers_url":"https://api.github.com/users/dgollahon/followers","following_url":"https://api.github.com/users/dgollahon/following{/other_user}","gists_url":"https://api.github.com/users/dgollahon/gists{/gist_id}","starred_url":"https://api.github.com/users/dgollahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgollahon/subscriptions","organizations_url":"https://api.github.com/users/dgollahon/orgs","repos_url":"https://api.github.com/users/dgollahon/repos","events_url":"https://api.github.com/users/dgollahon/events{/privacy}","received_events_url":"https://api.github.com/users/dgollahon/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T00:14:54Z","updated_at":"2016-09-17T00:14:54Z","body":"@solnic: Right, I was looking for it the other day and saw that.\r\n\r\nYeah, this happens to already come back to me from an internal lib in struct form so it's kind of an unusual case. Normally throughout the app user input gets validated before getting coerced into any other structure but that wasn't as much of an option here."}}
{"actor":{"display_login":"dgollahon"}}