{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/2","id":205593556,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NTkzNTU2","html_url":"https://github.com/sagnol/decorator-mongoose-model/pull/2","diff_url":"https://github.com/sagnol/decorator-mongoose-model/pull/2.diff","patch_url":"https://github.com/sagnol/decorator-mongoose-model/pull/2.patch","issue_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/2","number":2,"state":"closed","locked":false,"title":"add schema option at @Document decorator","user":{"login":"sagnol","id":17628907,"node_id":"MDQ6VXNlcjE3NjI4OTA3","avatar_url":"https://avatars3.githubusercontent.com/u/17628907?v=4","gravatar_id":"","url":"https://api.github.com/users/sagnol","html_url":"https://github.com/sagnol","followers_url":"https://api.github.com/users/sagnol/followers","following_url":"https://api.github.com/users/sagnol/following{/other_user}","gists_url":"https://api.github.com/users/sagnol/gists{/gist_id}","starred_url":"https://api.github.com/users/sagnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagnol/subscriptions","organizations_url":"https://api.github.com/users/sagnol/orgs","repos_url":"https://api.github.com/users/sagnol/repos","events_url":"https://api.github.com/users/sagnol/events{/privacy}","received_events_url":"https://api.github.com/users/sagnol/received_events","type":"User","site_admin":false},"body":"add schema option at @Document decorator  \r\n Refer to mongoose schema options [http://mongoosejs.com/docs/guide.html#options](http://mongoosejs.com/docs/guide.html#options)\r\n```ts\r\n@Document(\"mySchema\", {\r\n    autoIndex: true,\r\n    strict: true,\r\n    timestamps: {\r\n        createdAt: 'created_at', \r\n        updatedAt: 'updated_at'\r\n    }\r\n})\r\nclass MySchema {\r\n    @Prop()\r\n    name: string;\r\n     @Prop({\r\n        required: true,\r\n        default: 'my@email.com'\r\n    })\r\n    email: string;\r\n}\r\n```","created_at":"2018-08-02T01:12:20Z","updated_at":"2018-08-02T01:13:38Z","closed_at":"2018-08-02T01:13:38Z","merged_at":"2018-08-02T01:13:38Z","merge_commit_sha":"0a76563fa99e06b886f92b76670ef9617b846bc8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/2/comments","statuses_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/statuses/dfb5c465c867f7c49938f9f1a38c2aa5cfa4c8dd","head":{"label":"sagnol:add-schema-option","ref":"add-schema-option","sha":"dfb5c465c867f7c49938f9f1a38c2aa5cfa4c8dd","user":{"login":"sagnol","id":17628907,"node_id":"MDQ6VXNlcjE3NjI4OTA3","avatar_url":"https://avatars3.githubusercontent.com/u/17628907?v=4","gravatar_id":"","url":"https://api.github.com/users/sagnol","html_url":"https://github.com/sagnol","followers_url":"https://api.github.com/users/sagnol/followers","following_url":"https://api.github.com/users/sagnol/following{/other_user}","gists_url":"https://api.github.com/users/sagnol/gists{/gist_id}","starred_url":"https://api.github.com/users/sagnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagnol/subscriptions","organizations_url":"https://api.github.com/users/sagnol/orgs","repos_url":"https://api.github.com/users/sagnol/repos","events_url":"https://api.github.com/users/sagnol/events{/privacy}","received_events_url":"https://api.github.com/users/sagnol/received_events","type":"User","site_admin":false},"repo":{"id":142850382,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4NTAzODI=","name":"decorator-mongoose-model","full_name":"sagnol/decorator-mongoose-model","owner":{"login":"sagnol","id":17628907,"node_id":"MDQ6VXNlcjE3NjI4OTA3","avatar_url":"https://avatars3.githubusercontent.com/u/17628907?v=4","gravatar_id":"","url":"https://api.github.com/users/sagnol","html_url":"https://github.com/sagnol","followers_url":"https://api.github.com/users/sagnol/followers","following_url":"https://api.github.com/users/sagnol/following{/other_user}","gists_url":"https://api.github.com/users/sagnol/gists{/gist_id}","starred_url":"https://api.github.com/users/sagnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagnol/subscriptions","organizations_url":"https://api.github.com/users/sagnol/orgs","repos_url":"https://api.github.com/users/sagnol/repos","events_url":"https://api.github.com/users/sagnol/events{/privacy}","received_events_url":"https://api.github.com/users/sagnol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagnol/decorator-mongoose-model","description":"serve mongoose model decorator using typescript decorator & reflect-metadata","fork":false,"url":"https://api.github.com/repos/sagnol/decorator-mongoose-model","forks_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/forks","keys_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/teams","hooks_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/hooks","issue_events_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/events{/number}","events_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/events","assignees_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/assignees{/user}","branches_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/branches{/branch}","tags_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/tags","blobs_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/statuses/{sha}","languages_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/languages","stargazers_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/stargazers","contributors_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/contributors","subscribers_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/subscribers","subscription_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/subscription","commits_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/contents/{+path}","compare_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/merges","archive_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/downloads","issues_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues{/number}","pulls_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls{/number}","milestones_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/milestones{/number}","notifications_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/labels{/name}","releases_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/releases{/id}","deployments_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/deployments","created_at":"2018-07-30T08:55:21Z","updated_at":"2018-07-31T09:53:12Z","pushed_at":"2018-08-02T01:13:38Z","git_url":"git://github.com/sagnol/decorator-mongoose-model.git","ssh_url":"git@github.com:sagnol/decorator-mongoose-model.git","clone_url":"https://github.com/sagnol/decorator-mongoose-model.git","svn_url":"https://github.com/sagnol/decorator-mongoose-model","homepage":"","size":69,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sagnol:master","ref":"master","sha":"f53ac69b6f7885d79cd078ef200b258e2b34df7d","user":{"login":"sagnol","id":17628907,"node_id":"MDQ6VXNlcjE3NjI4OTA3","avatar_url":"https://avatars3.githubusercontent.com/u/17628907?v=4","gravatar_id":"","url":"https://api.github.com/users/sagnol","html_url":"https://github.com/sagnol","followers_url":"https://api.github.com/users/sagnol/followers","following_url":"https://api.github.com/users/sagnol/following{/other_user}","gists_url":"https://api.github.com/users/sagnol/gists{/gist_id}","starred_url":"https://api.github.com/users/sagnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagnol/subscriptions","organizations_url":"https://api.github.com/users/sagnol/orgs","repos_url":"https://api.github.com/users/sagnol/repos","events_url":"https://api.github.com/users/sagnol/events{/privacy}","received_events_url":"https://api.github.com/users/sagnol/received_events","type":"User","site_admin":false},"repo":{"id":142850382,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4NTAzODI=","name":"decorator-mongoose-model","full_name":"sagnol/decorator-mongoose-model","owner":{"login":"sagnol","id":17628907,"node_id":"MDQ6VXNlcjE3NjI4OTA3","avatar_url":"https://avatars3.githubusercontent.com/u/17628907?v=4","gravatar_id":"","url":"https://api.github.com/users/sagnol","html_url":"https://github.com/sagnol","followers_url":"https://api.github.com/users/sagnol/followers","following_url":"https://api.github.com/users/sagnol/following{/other_user}","gists_url":"https://api.github.com/users/sagnol/gists{/gist_id}","starred_url":"https://api.github.com/users/sagnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagnol/subscriptions","organizations_url":"https://api.github.com/users/sagnol/orgs","repos_url":"https://api.github.com/users/sagnol/repos","events_url":"https://api.github.com/users/sagnol/events{/privacy}","received_events_url":"https://api.github.com/users/sagnol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagnol/decorator-mongoose-model","description":"serve mongoose model decorator using typescript decorator & reflect-metadata","fork":false,"url":"https://api.github.com/repos/sagnol/decorator-mongoose-model","forks_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/forks","keys_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/teams","hooks_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/hooks","issue_events_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/events{/number}","events_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/events","assignees_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/assignees{/user}","branches_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/branches{/branch}","tags_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/tags","blobs_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/statuses/{sha}","languages_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/languages","stargazers_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/stargazers","contributors_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/contributors","subscribers_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/subscribers","subscription_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/subscription","commits_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/contents/{+path}","compare_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/merges","archive_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/downloads","issues_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues{/number}","pulls_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls{/number}","milestones_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/milestones{/number}","notifications_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/labels{/name}","releases_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/releases{/id}","deployments_url":"https://api.github.com/repos/sagnol/decorator-mongoose-model/deployments","created_at":"2018-07-30T08:55:21Z","updated_at":"2018-07-31T09:53:12Z","pushed_at":"2018-08-02T01:13:38Z","git_url":"git://github.com/sagnol/decorator-mongoose-model.git","ssh_url":"git@github.com:sagnol/decorator-mongoose-model.git","clone_url":"https://github.com/sagnol/decorator-mongoose-model.git","svn_url":"https://github.com/sagnol/decorator-mongoose-model","homepage":"","size":69,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/2"},"html":{"href":"https://github.com/sagnol/decorator-mongoose-model/pull/2"},"issue":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/2"},"comments":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sagnol/decorator-mongoose-model/statuses/dfb5c465c867f7c49938f9f1a38c2aa5cfa4c8dd"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"sagnol","id":17628907,"node_id":"MDQ6VXNlcjE3NjI4OTA3","avatar_url":"https://avatars3.githubusercontent.com/u/17628907?v=4","gravatar_id":"","url":"https://api.github.com/users/sagnol","html_url":"https://github.com/sagnol","followers_url":"https://api.github.com/users/sagnol/followers","following_url":"https://api.github.com/users/sagnol/following{/other_user}","gists_url":"https://api.github.com/users/sagnol/gists{/gist_id}","starred_url":"https://api.github.com/users/sagnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagnol/subscriptions","organizations_url":"https://api.github.com/users/sagnol/orgs","repos_url":"https://api.github.com/users/sagnol/repos","events_url":"https://api.github.com/users/sagnol/events{/privacy}","received_events_url":"https://api.github.com/users/sagnol/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":65,"deletions":4,"changed_files":5}}
{"actor":{"display_login":"sagnol"}}