{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/183","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/183/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/183/events","html_url":"https://github.com/formly-js/angular-formly/issues/183","id":58607547,"number":183,"title":"Allow types to validate options","user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-02-23T16:11:47Z","updated_at":"2015-02-24T03:48:58Z","closed_at":null,"body":"It would be really useful if types could validate options and throw errors when there are options provided that are not valid for the type. This should be simply in the form of a function that accepts the `options` and the type author throws an error or warns in the console themselves. It should run in the `formly-field` controller function before (almost) anything else."},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/75694937","html_url":"https://github.com/formly-js/angular-formly/issues/183#issuecomment-75694937","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/183","id":75694937,"user":{"login":"ShMcK","id":4660659,"avatar_url":"https://avatars.githubusercontent.com/u/4660659?v=3","gravatar_id":"","url":"https://api.github.com/users/ShMcK","html_url":"https://github.com/ShMcK","followers_url":"https://api.github.com/users/ShMcK/followers","following_url":"https://api.github.com/users/ShMcK/following{/other_user}","gists_url":"https://api.github.com/users/ShMcK/gists{/gist_id}","starred_url":"https://api.github.com/users/ShMcK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShMcK/subscriptions","organizations_url":"https://api.github.com/users/ShMcK/orgs","repos_url":"https://api.github.com/users/ShMcK/repos","events_url":"https://api.github.com/users/ShMcK/events{/privacy}","received_events_url":"https://api.github.com/users/ShMcK/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T03:48:58Z","updated_at":"2015-02-24T03:48:58Z","body":":)"}}