{"action":"opened","issue":{"url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/874","repository_url":"https://api.github.com/repos/JeremySkinner/FluentValidation","labels_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/874/labels{/name}","comments_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/874/comments","events_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/874/events","html_url":"https://github.com/JeremySkinner/FluentValidation/issues/874","id":353010069,"node_id":"MDU6SXNzdWUzNTMwMTAwNjk=","number":874,"title":"RuleForEach and OverrideProperyName","user":{"login":"waynebrantley","id":157082,"node_id":"MDQ6VXNlcjE1NzA4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/157082?v=4","gravatar_id":"","url":"https://api.github.com/users/waynebrantley","html_url":"https://github.com/waynebrantley","followers_url":"https://api.github.com/users/waynebrantley/followers","following_url":"https://api.github.com/users/waynebrantley/following{/other_user}","gists_url":"https://api.github.com/users/waynebrantley/gists{/gist_id}","starred_url":"https://api.github.com/users/waynebrantley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waynebrantley/subscriptions","organizations_url":"https://api.github.com/users/waynebrantley/orgs","repos_url":"https://api.github.com/users/waynebrantley/repos","events_url":"https://api.github.com/users/waynebrantley/events{/privacy}","received_events_url":"https://api.github.com/users/waynebrantley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T15:36:04Z","updated_at":"2018-08-22T15:36:04Z","closed_at":null,"author_association":"NONE","body":"Version 8\r\n\r\nWhen using ``RuleForEach`` and ``OverridePropertyName`` it does in fact change the property name.  However, it keeps the ``[]`` for the array.\r\n\r\nFor example:\r\n```\r\nRuleForEach(x => x.SomeCollection).Must((x, y) => y.SomeId != 0)\r\n.WithMessage(\"Cannot have this!\").OverrideProperyName(\"TheCollection\");\r\n```\r\nWill generate an error where the property name is ``TheCollection[2]``\r\n\r\nWhat I am interested in is just a property name of ``TheCollection``\r\n\r\nAlso, could not get ``OverridePropertyName(x=>x.SomeElementId)`` to work with ``RuleForEach`` either.\r\n\r\nDiscussed here previously, and is now supposed to work.\r\nhttps://github.com/JeremySkinner/FluentValidation/issues/262\r\n\r\n"}}
{"actor":{"display_login":"waynebrantley"}}