{"action":"created","issue":{"url":"https://api.github.com/repos/dry-rb/dry-view/issues/36","repository_url":"https://api.github.com/repos/dry-rb/dry-view","labels_url":"https://api.github.com/repos/dry-rb/dry-view/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/dry-rb/dry-view/issues/36/comments","events_url":"https://api.github.com/repos/dry-rb/dry-view/issues/36/events","html_url":"https://github.com/dry-rb/dry-view/pull/36","id":225548750,"number":36,"title":"Support :each_as option for specifying part class for array members","user":{"login":"timriley","id":3134,"avatar_url":"https://avatars3.githubusercontent.com/u/3134?v=3","gravatar_id":"","url":"https://api.github.com/users/timriley","html_url":"https://github.com/timriley","followers_url":"https://api.github.com/users/timriley/followers","following_url":"https://api.github.com/users/timriley/following{/other_user}","gists_url":"https://api.github.com/users/timriley/gists{/gist_id}","starred_url":"https://api.github.com/users/timriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timriley/subscriptions","organizations_url":"https://api.github.com/users/timriley/orgs","repos_url":"https://api.github.com/users/timriley/repos","events_url":"https://api.github.com/users/timriley/events{/privacy}","received_events_url":"https://api.github.com/users/timriley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-01T22:57:50Z","updated_at":"2017-05-07T11:35:10Z","closed_at":"2017-05-01T23:08:57Z","pull_request":{"url":"https://api.github.com/repos/dry-rb/dry-view/pulls/36","html_url":"https://github.com/dry-rb/dry-view/pull/36","diff_url":"https://github.com/dry-rb/dry-view/pull/36.diff","patch_url":"https://github.com/dry-rb/dry-view/pull/36.patch"},"body":"Our standard decorator handles arrays of objects in a special way, decorating each member of the array as well as the array itself. Given we support specifying an `as:` option on exposures to provide a custom part class, we should also support providing a custom part class for array members. This PR implements this using the `each_as:` option.\r\n\r\nThis feels like the last thing we need before we can release the decorator and parts feature."},"comment":{"url":"https://api.github.com/repos/dry-rb/dry-view/issues/comments/299700072","html_url":"https://github.com/dry-rb/dry-view/pull/36#issuecomment-299700072","issue_url":"https://api.github.com/repos/dry-rb/dry-view/issues/36","id":299700072,"user":{"login":"timriley","id":3134,"avatar_url":"https://avatars3.githubusercontent.com/u/3134?v=3","gravatar_id":"","url":"https://api.github.com/users/timriley","html_url":"https://github.com/timriley","followers_url":"https://api.github.com/users/timriley/followers","following_url":"https://api.github.com/users/timriley/following{/other_user}","gists_url":"https://api.github.com/users/timriley/gists{/gist_id}","starred_url":"https://api.github.com/users/timriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timriley/subscriptions","organizations_url":"https://api.github.com/users/timriley/orgs","repos_url":"https://api.github.com/users/timriley/repos","events_url":"https://api.github.com/users/timriley/events{/privacy}","received_events_url":"https://api.github.com/users/timriley/received_events","type":"User","site_admin":false},"created_at":"2017-05-07T11:35:10Z","updated_at":"2017-05-07T11:35:10Z","body":"I think I'll implement what I've just suggested here, along with the following behavioural change: if a simple `as: SomeClass` is provided for an array-like exposure, then that part class will be used to wrap the array _members_, not the array itself."}}
{"actor":{"display_login":"timriley"}}