{"action":"created","issue":{"url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/407","repository_url":"https://api.github.com/repos/JeremySkinner/FluentValidation","labels_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/407/comments","events_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/407/events","html_url":"https://github.com/JeremySkinner/FluentValidation/issues/407","id":208181732,"number":407,"title":"Display error codes instead of messages","user":{"login":"ben-foster-cko","id":19906175,"avatar_url":"https://avatars.githubusercontent.com/u/19906175?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-foster-cko","html_url":"https://github.com/ben-foster-cko","followers_url":"https://api.github.com/users/ben-foster-cko/followers","following_url":"https://api.github.com/users/ben-foster-cko/following{/other_user}","gists_url":"https://api.github.com/users/ben-foster-cko/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-foster-cko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-foster-cko/subscriptions","organizations_url":"https://api.github.com/users/ben-foster-cko/orgs","repos_url":"https://api.github.com/users/ben-foster-cko/repos","events_url":"https://api.github.com/users/ben-foster-cko/events{/privacy}","received_events_url":"https://api.github.com/users/ben-foster-cko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-16T16:55:52Z","updated_at":"2017-02-16T17:12:39Z","closed_at":null,"body":"We're using FV with ASP.NET Core. Is it possible to customise the messages that are added to ModelState to display the ErrorCode in addition to the message? I do not really want to combine the two in my error messages and we rely on the codes for reliable testing."},"comment":{"url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/comments/280394960","html_url":"https://github.com/JeremySkinner/FluentValidation/issues/407#issuecomment-280394960","issue_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/407","id":280394960,"user":{"login":"JeremySkinner","id":90130,"avatar_url":"https://avatars.githubusercontent.com/u/90130?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremySkinner","html_url":"https://github.com/JeremySkinner","followers_url":"https://api.github.com/users/JeremySkinner/followers","following_url":"https://api.github.com/users/JeremySkinner/following{/other_user}","gists_url":"https://api.github.com/users/JeremySkinner/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremySkinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremySkinner/subscriptions","organizations_url":"https://api.github.com/users/JeremySkinner/orgs","repos_url":"https://api.github.com/users/JeremySkinner/repos","events_url":"https://api.github.com/users/JeremySkinner/events{/privacy}","received_events_url":"https://api.github.com/users/JeremySkinner/received_events","type":"User","site_admin":false},"created_at":"2017-02-16T17:12:39Z","updated_at":"2017-02-16T17:12:39Z","body":"I think you'd have to create your own version of the model validator that changes how the messages are written to ModelState. Having a hook isn't a bad idea though, although it wouldn't work for clientside messages. I'll re-open for now to look at for the next version. "}}
{"actor":{"display_login":"JeremySkinner"}}