{"action":"closed","issue":{"url":"https://api.github.com/repos/aurelia/validatejs/issues/105","repository_url":"https://api.github.com/repos/aurelia/validatejs","labels_url":"https://api.github.com/repos/aurelia/validatejs/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/validatejs/issues/105/comments","events_url":"https://api.github.com/repos/aurelia/validatejs/issues/105/events","html_url":"https://github.com/aurelia/validatejs/issues/105","id":164079641,"number":105,"title":"validator.ensure is not a function","user":{"login":"mackecar","id":5793984,"avatar_url":"https://avatars.githubusercontent.com/u/5793984?v=3","gravatar_id":"","url":"https://api.github.com/users/mackecar","html_url":"https://github.com/mackecar","followers_url":"https://api.github.com/users/mackecar/followers","following_url":"https://api.github.com/users/mackecar/following{/other_user}","gists_url":"https://api.github.com/users/mackecar/gists{/gist_id}","starred_url":"https://api.github.com/users/mackecar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackecar/subscriptions","organizations_url":"https://api.github.com/users/mackecar/orgs","repos_url":"https://api.github.com/users/mackecar/repos","events_url":"https://api.github.com/users/mackecar/events{/privacy}","received_events_url":"https://api.github.com/users/mackecar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/validatejs/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-06T13:48:19Z","updated_at":"2016-07-06T21:05:53Z","closed_at":"2016-07-06T21:05:53Z","body":"This is my code:\r\n`import {inject} from \"aurelia-framework\";\r\nimport {DataRepo} from \"./dataRepo\";\r\nimport {Router} from \"aurelia-router\";\r\nimport {Validator} from 'aurelia-validatejs';\r\n\r\n\r\n\r\n@inject(DataRepo,Router,Validator)\r\nexport class AddNew{\r\n    constructor(dataRepo,router,validator) {\r\n        this.dataRepo = dataRepo;\r\n        this.router = router;\r\n        this.validator = validator.ensure(this.person, 'FirstName').required();\r\n    }`\r\nand this is Error:\r\n`aurelia-logging-console.js:54 ERROR [app-router] Error: Error invoking AddNew. Check the inner error for details.\r\n------------------------------------------------\r\nInner Error:\r\nMessage: validator.ensure is not a function\r\nInner Error Stack:\r\nTypeError: validator.ensure is not a function\r\n    at new AddNew (http://localhost:60808/Users/addNew.js!transpiled:29:48)\r\n    at Object.invoke (http://localhost:60808/jspm_packages/npm/aurelia-dependency-injection@1.0.0-rc.1.0.0/aurelia-dependency-injection.js:362:14)\r\n    at InvocationHandler.invoke (http://localhost:60808/jspm_packages/npm/aurelia-dependency-injection@1.0.0-rc.1.0.0/aurelia-dependency-injection.js:321:168)\r\n    at Container.invoke (http://localhost:60808/jspm_packages/npm/aurelia-dependency-injection@1.0.0-rc.1.0.0/aurelia-dependency-injection.js:585:25)\r\n    at StrategyResolver.get (http://localhost:60808/jspm_packages/npm/aurelia-dependency-injection@1.0.0-rc.1.0.0/aurelia-dependency-injection.js:123:37)\r\n    at Container.get (http://localhost:60808/jspm_packages/npm/aurelia-dependency-injection@1.0.0-rc.1.0.0/aurelia-dependency-injection.js:522:23)\r\n    at eval (http://localhost:60808/jspm_packages/npm/aurelia-templating@1.0.0-rc.1.0.0/aurelia-templating.js:4412:73)\r\nEnd Inner Error Stack`\r\n\r\nWhat is a problem?"}}
{"actor":{"display_login":"jdanyow"}}