{"action":"created","issue":{"url":"https://api.github.com/repos/drew-y/meteor-autoform-datetimepicker/issues/3","labels_url":"https://api.github.com/repos/drew-y/meteor-autoform-datetimepicker/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/drew-y/meteor-autoform-datetimepicker/issues/3/comments","events_url":"https://api.github.com/repos/drew-y/meteor-autoform-datetimepicker/issues/3/events","html_url":"https://github.com/drew-y/meteor-autoform-datetimepicker/issues/3","id":109696826,"number":3,"title":"Cannot set default type in Schema","user":{"login":"cbanbury","id":536097,"avatar_url":"https://avatars.githubusercontent.com/u/536097?v=3","gravatar_id":"","url":"https://api.github.com/users/cbanbury","html_url":"https://github.com/cbanbury","followers_url":"https://api.github.com/users/cbanbury/followers","following_url":"https://api.github.com/users/cbanbury/following{/other_user}","gists_url":"https://api.github.com/users/cbanbury/gists{/gist_id}","starred_url":"https://api.github.com/users/cbanbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbanbury/subscriptions","organizations_url":"https://api.github.com/users/cbanbury/orgs","repos_url":"https://api.github.com/users/cbanbury/repos","events_url":"https://api.github.com/users/cbanbury/events{/privacy}","received_events_url":"https://api.github.com/users/cbanbury/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-04T18:53:00Z","updated_at":"2015-10-04T19:54:53Z","closed_at":"2015-10-04T19:54:53Z","body":"Hi, more of a question than an issue, but having some trouble trying to set the default type as shown the the README: \r\n\r\n```\r\nvar Schema = {};\r\n\r\nSchema.Date = new SimpleSchema({\r\n  date: {\r\n    type: String,\r\n    autoForm: {\r\n      type: 'datetimepicker'\r\n    }\r\n  }\r\n});\r\n\r\nSchema.test = new SimpleSchema({\r\n  my_date: {\r\n    type: Date\r\n  }\r\n});\r\n\r\nMyCollection.attachSchema(Schema.test);\r\n```\r\n\r\nThis gives the following error: \r\n\r\n```\r\nError: Invalid definition for date field.\r\n    at packages/aldeed_simple-schema/packages/aldeed_simple-schema.js:1328:1\r\n```\r\n\r\nWhat am I doing wrong? Thanks in advance"},"comment":{"url":"https://api.github.com/repos/drew-y/meteor-autoform-datetimepicker/issues/comments/145381396","html_url":"https://github.com/drew-y/meteor-autoform-datetimepicker/issues/3#issuecomment-145381396","issue_url":"https://api.github.com/repos/drew-y/meteor-autoform-datetimepicker/issues/3","id":145381396,"user":{"login":"drew-y","id":7987513,"avatar_url":"https://avatars.githubusercontent.com/u/7987513?v=3","gravatar_id":"","url":"https://api.github.com/users/drew-y","html_url":"https://github.com/drew-y","followers_url":"https://api.github.com/users/drew-y/followers","following_url":"https://api.github.com/users/drew-y/following{/other_user}","gists_url":"https://api.github.com/users/drew-y/gists{/gist_id}","starred_url":"https://api.github.com/users/drew-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drew-y/subscriptions","organizations_url":"https://api.github.com/users/drew-y/orgs","repos_url":"https://api.github.com/users/drew-y/repos","events_url":"https://api.github.com/users/drew-y/events{/privacy}","received_events_url":"https://api.github.com/users/drew-y/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T19:54:53Z","updated_at":"2015-10-04T19:54:53Z","body":"That was an error on my part. Thanks for pointing it out. Fixed with 7bd2dfbd7416a4729c5c79f6134b7fd31040a0a4."}}