{"action":"opened","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-validation/issues/53","repository_url":"https://api.github.com/repos/gcanti/tcomb-validation","labels_url":"https://api.github.com/repos/gcanti/tcomb-validation/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-validation/issues/53/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-validation/issues/53/events","html_url":"https://github.com/gcanti/tcomb-validation/issues/53","id":188588385,"number":53,"title":"[rfc] ValidationError: relax message type","user":{"login":"pigoz","id":24681,"avatar_url":"https://avatars.githubusercontent.com/u/24681?v=3","gravatar_id":"","url":"https://api.github.com/users/pigoz","html_url":"https://github.com/pigoz","followers_url":"https://api.github.com/users/pigoz/followers","following_url":"https://api.github.com/users/pigoz/following{/other_user}","gists_url":"https://api.github.com/users/pigoz/gists{/gist_id}","starred_url":"https://api.github.com/users/pigoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pigoz/subscriptions","organizations_url":"https://api.github.com/users/pigoz/orgs","repos_url":"https://api.github.com/users/pigoz/repos","events_url":"https://api.github.com/users/pigoz/events{/privacy}","received_events_url":"https://api.github.com/users/pigoz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-10T18:52:44Z","updated_at":"2016-11-10T18:52:44Z","closed_at":null,"body":"Hi Giulio!\r\n\r\nCurrently I am returning i18n keys from `getValidationErrorMessage` inside my application. I'd like to return an object instead so that I can use it as props for `react-intl`'s `<FormattedMessage>` component.\r\n\r\nFor this reason I'd like to change https://github.com/gcanti/tcomb-validation/blob/master/index.js#L9 from `t.String` to `t.Any`.\r\n\r\nBy doing this I can avoid my validation code to be coupled to `react-intl` or any other future i18n mechanism, and I don't need any special code to handle dynamic locale changes.\r\n\r\nPlease let me know your opinion on this!"}}
{"actor":{"display_login":"pigoz"}}