{"action":"created","issue":{"url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/issues/1","repository_url":"https://api.github.com/repos/briananderson1222/swagger-mongoose","labels_url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/issues/1/comments","events_url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/issues/1/events","html_url":"https://github.com/briananderson1222/swagger-mongoose/pull/1","id":153893298,"number":1,"title":"Phase 1: tests are passing, except line 139. need to fix exclude sche…","user":{"login":"paul42","id":278262,"avatar_url":"https://avatars.githubusercontent.com/u/278262?v=3","gravatar_id":"","url":"https://api.github.com/users/paul42","html_url":"https://github.com/paul42","followers_url":"https://api.github.com/users/paul42/followers","following_url":"https://api.github.com/users/paul42/following{/other_user}","gists_url":"https://api.github.com/users/paul42/gists{/gist_id}","starred_url":"https://api.github.com/users/paul42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul42/subscriptions","organizations_url":"https://api.github.com/users/paul42/orgs","repos_url":"https://api.github.com/users/paul42/repos","events_url":"https://api.github.com/users/paul42/events{/privacy}","received_events_url":"https://api.github.com/users/paul42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-09T23:34:58Z","updated_at":"2016-05-13T14:28:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/pulls/1","html_url":"https://github.com/briananderson1222/swagger-mongoose/pull/1","diff_url":"https://github.com/briananderson1222/swagger-mongoose/pull/1.diff","patch_url":"https://github.com/briananderson1222/swagger-mongoose/pull/1.patch"},"body":"…ma for nested, added tweaks for defaults\r\n\r\nFixed tests, fixed compile, one issue here still, line 139 of test/index.js - need to fix but out of time for today\r\n"},"comment":{"url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/issues/comments/219059300","html_url":"https://github.com/briananderson1222/swagger-mongoose/pull/1#issuecomment-219059300","issue_url":"https://api.github.com/repos/briananderson1222/swagger-mongoose/issues/1","id":219059300,"user":{"login":"briananderson1222","id":4603907,"avatar_url":"https://avatars.githubusercontent.com/u/4603907?v=3","gravatar_id":"","url":"https://api.github.com/users/briananderson1222","html_url":"https://github.com/briananderson1222","followers_url":"https://api.github.com/users/briananderson1222/followers","following_url":"https://api.github.com/users/briananderson1222/following{/other_user}","gists_url":"https://api.github.com/users/briananderson1222/gists{/gist_id}","starred_url":"https://api.github.com/users/briananderson1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briananderson1222/subscriptions","organizations_url":"https://api.github.com/users/briananderson1222/orgs","repos_url":"https://api.github.com/users/briananderson1222/repos","events_url":"https://api.github.com/users/briananderson1222/events{/privacy}","received_events_url":"https://api.github.com/users/briananderson1222/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T14:28:46Z","updated_at":"2016-05-13T14:28:46Z","body":"I'll have to pull down the changes and ensure it doesn't break anything (can't imagine why it would) for my project using this branch but then I can merge it. \r\n\r\nI am using the following code in my project right now and it appears to create the unique index correctly.. was there something else you were looking for relating to indexes?\r\n\r\n```js\r\nDocumentNameHere:\r\n    type: object\r\n    properties:\r\n      name:\r\n        type: string\r\n        x-swagger-mongoose:\r\n          index: { unique: true }\r\n      image:\r\n        type: string\r\n      description:\r\n        type: string\r\n```"}}