{"action":"opened","issue":{"url":"https://api.github.com/repos/get-focus/focus-graph/issues/148","repository_url":"https://api.github.com/repos/get-focus/focus-graph","labels_url":"https://api.github.com/repos/get-focus/focus-graph/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/get-focus/focus-graph/issues/148/comments","events_url":"https://api.github.com/repos/get-focus/focus-graph/issues/148/events","html_url":"https://github.com/get-focus/focus-graph/issues/148","id":189112504,"number":148,"title":"[FieldFor] Formatter/Unformatter not used when defined in domain","user":{"login":"tadamK","id":14274196,"avatar_url":"https://avatars.githubusercontent.com/u/14274196?v=3","gravatar_id":"","url":"https://api.github.com/users/tadamK","html_url":"https://github.com/tadamK","followers_url":"https://api.github.com/users/tadamK/followers","following_url":"https://api.github.com/users/tadamK/following{/other_user}","gists_url":"https://api.github.com/users/tadamK/gists{/gist_id}","starred_url":"https://api.github.com/users/tadamK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadamK/subscriptions","organizations_url":"https://api.github.com/users/tadamK/orgs","repos_url":"https://api.github.com/users/tadamK/repos","events_url":"https://api.github.com/users/tadamK/events{/privacy}","received_events_url":"https://api.github.com/users/tadamK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-14T13:29:51Z","updated_at":"2016-11-14T13:29:51Z","closed_at":null,"body":"Hello,\r\n\r\nWhen I use a formatter or an unformatter in a domain, it is not used for the associated fields displayed with a fieldFor.\r\n\r\nMy domain :\r\n```\r\nexport default {\r\n    type: 'text',\r\n    unformatter: (data) => {\r\n        return data ? data.toUpperCase() : data;\r\n    },\r\n    validator: [{\r\n        type: 'string',\r\n        options: {\r\n            maxLength: 2\r\n        }\r\n    }]\r\n};\r\n```\r\nThis should display my string in upper case.\r\n\r\nHowever, when I declare the unformatter directly in the props of the fieldFor, it works.\r\n\r\n**\"focus-components\": \"3.0.0-rc46\"\r\n\"focus-graph\": \"3.0.0-beta4\"**\r\n\r\n"}}
{"actor":{"display_login":"tadamK"}}