{"action":"created","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form/issues/303","repository_url":"https://api.github.com/repos/gcanti/tcomb-form","labels_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/303/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/303/events","html_url":"https://github.com/gcanti/tcomb-form/issues/303","id":136823067,"number":303,"title":"tcomb <-> tcomb-form","user":{"login":"simonpure","id":31035,"avatar_url":"https://avatars.githubusercontent.com/u/31035?v=3","gravatar_id":"","url":"https://api.github.com/users/simonpure","html_url":"https://github.com/simonpure","followers_url":"https://api.github.com/users/simonpure/followers","following_url":"https://api.github.com/users/simonpure/following{/other_user}","gists_url":"https://api.github.com/users/simonpure/gists{/gist_id}","starred_url":"https://api.github.com/users/simonpure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonpure/subscriptions","organizations_url":"https://api.github.com/users/simonpure/orgs","repos_url":"https://api.github.com/users/simonpure/repos","events_url":"https://api.github.com/users/simonpure/events{/privacy}","received_events_url":"https://api.github.com/users/simonpure/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-26T21:48:47Z","updated_at":"2016-02-28T20:57:48Z","closed_at":null,"body":"Hi @gcanti ,\r\n\r\nMore questions from me :)\r\n\r\n> You often don't want to use your domain model directly for a form. You can easily create a form specific model with tcomb that captures the details of a particular feature, and then define a function that uses that model to process the main domain model.\r\n\r\nI agree with that statement, but having trouble figuring out the best way to:\r\n- keep things DRY between domain model defined w/ tcomb vs. form models defined w/ tcomb-form\r\n- writing the function to do the transformation\r\n\r\nThe simple use cases I'm thinking about are:\r\n- omit some fields in the form model defined in the domain model (looks like I can just pass in the domain model and the form model will ignore the extra fields)\r\n- transform a tcomb.Date to a tcomb-form.Date type\r\n\r\nCould you point me to some examples to further my understanding?\r\n\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gcanti/tcomb-form/issues/comments/189945192","html_url":"https://github.com/gcanti/tcomb-form/issues/303#issuecomment-189945192","issue_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/303","id":189945192,"user":{"login":"simonpure","id":31035,"avatar_url":"https://avatars.githubusercontent.com/u/31035?v=3","gravatar_id":"","url":"https://api.github.com/users/simonpure","html_url":"https://github.com/simonpure","followers_url":"https://api.github.com/users/simonpure/followers","following_url":"https://api.github.com/users/simonpure/following{/other_user}","gists_url":"https://api.github.com/users/simonpure/gists{/gist_id}","starred_url":"https://api.github.com/users/simonpure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonpure/subscriptions","organizations_url":"https://api.github.com/users/simonpure/orgs","repos_url":"https://api.github.com/users/simonpure/repos","events_url":"https://api.github.com/users/simonpure/events{/privacy}","received_events_url":"https://api.github.com/users/simonpure/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T20:57:48Z","updated_at":"2016-02-28T20:57:48Z","body":"I removed the node_modules, re-installed all dependencies and deduped packages -\r\n\r\n```\r\n> const t = require('tcomb')\r\nundefined\r\n> const tf = require('tcomb-form')\r\nundefined\r\n> t === tf\r\ntrue\r\n```\r\n\r\nBut the date field is still rendering as a textfield when importing it from 'tcomb' vs. 'tcomb-form'.\r\n\r\nI'll just use 'tcomb-form' for the time being until I figure this out tho.\r\n\r\nThanks for your help and attention!"}}