{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/5009","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/5009/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/5009/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/5009/events","html_url":"https://github.com/aspnet/Mvc/issues/5009","id":165122576,"number":5009,"title":"DataAnnotationsClientModelValidatorProvider not always using IValidationAttributeAdapterProvider","user":{"login":"Muchiachio","id":6647444,"avatar_url":"https://avatars.githubusercontent.com/u/6647444?v=3","gravatar_id":"","url":"https://api.github.com/users/Muchiachio","html_url":"https://github.com/Muchiachio","followers_url":"https://api.github.com/users/Muchiachio/followers","following_url":"https://api.github.com/users/Muchiachio/following{/other_user}","gists_url":"https://api.github.com/users/Muchiachio/gists{/gist_id}","starred_url":"https://api.github.com/users/Muchiachio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muchiachio/subscriptions","organizations_url":"https://api.github.com/users/Muchiachio/orgs","repos_url":"https://api.github.com/users/Muchiachio/repos","events_url":"https://api.github.com/users/Muchiachio/events{/privacy}","received_events_url":"https://api.github.com/users/Muchiachio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/Mvc/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"assignees":[{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/22","html_url":"https://github.com/aspnet/Mvc/milestones/1.1.0","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/22/labels","id":1763529,"number":22,"title":"1.1.0","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":54,"closed_issues":29,"state":"open","created_at":"2016-05-12T23:58:26Z","updated_at":"2016-07-19T22:36:07Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-07-12T16:36:49Z","updated_at":"2016-07-19T22:36:07Z","closed_at":"2016-07-19T22:36:07Z","body":"I was trying to localize my app, but I found out that my `IValidationAttributeAdapterProvider` doesn't get called then a value type is assigned `[Required]` attribute by default. [I think the problem lies here](https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.DataAnnotations/Internal/DataAnnotationsClientModelValidatorProvider.cs#L102). It's always using default required adapter implementation.\r\n\r\nWorkaround is to add `[Required]` attribute on value types."}}
{"actor":{"display_login":"dougbu"}}