{"action":"closed","issue":{"url":"https://api.github.com/repos/clubedaentrega/api-test/issues/1","labels_url":"https://api.github.com/repos/clubedaentrega/api-test/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/clubedaentrega/api-test/issues/1/comments","events_url":"https://api.github.com/repos/clubedaentrega/api-test/issues/1/events","html_url":"https://github.com/clubedaentrega/api-test/issues/1","id":66396769,"number":1,"title":"Support base structure for documents inserted into the DB","user":{"login":"sitegui","id":2801575,"avatar_url":"https://avatars.githubusercontent.com/u/2801575?v=3","gravatar_id":"","url":"https://api.github.com/users/sitegui","html_url":"https://github.com/sitegui","followers_url":"https://api.github.com/users/sitegui/followers","following_url":"https://api.github.com/users/sitegui/following{/other_user}","gists_url":"https://api.github.com/users/sitegui/gists{/gist_id}","starred_url":"https://api.github.com/users/sitegui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitegui/subscriptions","organizations_url":"https://api.github.com/users/sitegui/orgs","repos_url":"https://api.github.com/users/sitegui/repos","events_url":"https://api.github.com/users/sitegui/events{/privacy}","received_events_url":"https://api.github.com/users/sitegui/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clubedaentrega/api-test/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-05T03:41:27Z","updated_at":"2015-04-05T04:26:59Z","closed_at":"2015-04-05T04:26:59Z","body":"Most documents inserted into a given collection have the same base structure (like Schema in mongoose).\r\n\r\nBy now, the test writer must explicitly declare all those default values and this creates a lots of repeating boring boilerplate, like:\r\n```markdown\r\n### order in Order\r\nitems: [] // <- boilerplate\r\ntotalPrice: 0 // <- boring...\r\nisActive: true // <- ZzZZzz\r\nclient:\r\n    name: 'Guilherme' // <- this is useful\r\n```\r\n\r\nIt would be nice not to have to repeat myself in those cases :stuck_out_tongue_winking_eye: "}}