{"action":"created","issue":{"url":"https://api.github.com/repos/pleerock/class-validator/issues/115","repository_url":"https://api.github.com/repos/pleerock/class-validator","labels_url":"https://api.github.com/repos/pleerock/class-validator/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/pleerock/class-validator/issues/115/comments","events_url":"https://api.github.com/repos/pleerock/class-validator/issues/115/events","html_url":"https://github.com/pleerock/class-validator/issues/115","id":252879224,"number":115,"title":"Can we validate arguments going into class methods?","user":{"login":"viztastic","id":8556736,"avatar_url":"https://avatars2.githubusercontent.com/u/8556736?v=4","gravatar_id":"","url":"https://api.github.com/users/viztastic","html_url":"https://github.com/viztastic","followers_url":"https://api.github.com/users/viztastic/followers","following_url":"https://api.github.com/users/viztastic/following{/other_user}","gists_url":"https://api.github.com/users/viztastic/gists{/gist_id}","starred_url":"https://api.github.com/users/viztastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viztastic/subscriptions","organizations_url":"https://api.github.com/users/viztastic/orgs","repos_url":"https://api.github.com/users/viztastic/repos","events_url":"https://api.github.com/users/viztastic/events{/privacy}","received_events_url":"https://api.github.com/users/viztastic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-25T11:58:31Z","updated_at":"2017-08-27T12:01:08Z","closed_at":null,"body":"```javascript\r\nclass AssetProvision {\r\n\r\n      @IsNotEmpty()\r\n      public addAsset(asset: Asset) {\r\n               store(asset).in.database();\r\n      }\r\n\r\n}\r\n```\r\n\r\nI want to make sure that arguments going into the `addAsset` method are not null, is this possible with the `@IsNotEmpty()` decorator?"},"comment":{"url":"https://api.github.com/repos/pleerock/class-validator/issues/comments/325194012","html_url":"https://github.com/pleerock/class-validator/issues/115#issuecomment-325194012","issue_url":"https://api.github.com/repos/pleerock/class-validator/issues/115","id":325194012,"user":{"login":"NoNameProvided","id":4706265,"avatar_url":"https://avatars3.githubusercontent.com/u/4706265?v=4","gravatar_id":"","url":"https://api.github.com/users/NoNameProvided","html_url":"https://github.com/NoNameProvided","followers_url":"https://api.github.com/users/NoNameProvided/followers","following_url":"https://api.github.com/users/NoNameProvided/following{/other_user}","gists_url":"https://api.github.com/users/NoNameProvided/gists{/gist_id}","starred_url":"https://api.github.com/users/NoNameProvided/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoNameProvided/subscriptions","organizations_url":"https://api.github.com/users/NoNameProvided/orgs","repos_url":"https://api.github.com/users/NoNameProvided/repos","events_url":"https://api.github.com/users/NoNameProvided/events{/privacy}","received_events_url":"https://api.github.com/users/NoNameProvided/received_events","type":"User","site_admin":false},"created_at":"2017-08-27T12:01:08Z","updated_at":"2017-08-27T12:01:08Z","body":"Currently not. "}}
{"actor":{"display_login":"NoNameProvided"}}