{"action":"created","comment":{"url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/comments/33126615","id":33126615,"diff_hunk":"@@ -30,6 +30,37 @@ describe('Options', function () {\n     });\n   });\n \n+  describe('pluralizeType', function () {\n+    it('should allow type to not be pluralized', function (done) {\n+      var dataSet = {\n+        id: '1',\n+        firstName: 'Sandro',\n+        lastName: 'Munda',\n+      }\n+\n+      new JsonApiSerializer('user', dataSet, {\n+        attributes: ['firstName', 'lastName'],\n+        pluralizeType: false\n+      }).then(function (json) {\n+        console.log(json);","path":"test/serializer.js","position":16,"original_position":16,"commit_id":"56bd8b6889c150138c2f5fb7081798c5bfc268ef","original_commit_id":"56bd8b6889c150138c2f5fb7081798c5bfc268ef","user":{"login":"SeyZ","id":519129,"avatar_url":"https://avatars.githubusercontent.com/u/519129?v=3","gravatar_id":"","url":"https://api.github.com/users/SeyZ","html_url":"https://github.com/SeyZ","followers_url":"https://api.github.com/users/SeyZ/followers","following_url":"https://api.github.com/users/SeyZ/following{/other_user}","gists_url":"https://api.github.com/users/SeyZ/gists{/gist_id}","starred_url":"https://api.github.com/users/SeyZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeyZ/subscriptions","organizations_url":"https://api.github.com/users/SeyZ/orgs","repos_url":"https://api.github.com/users/SeyZ/repos","events_url":"https://api.github.com/users/SeyZ/events{/privacy}","received_events_url":"https://api.github.com/users/SeyZ/received_events","type":"User","site_admin":false},"body":"Can you just remove the console.log ?","created_at":"2015-06-24T08:22:31Z","updated_at":"2015-06-24T08:22:31Z","html_url":"https://github.com/SeyZ/jsonapi-serializer/pull/3#discussion_r33126615","pull_request_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/comments/33126615"},"html":{"href":"https://github.com/SeyZ/jsonapi-serializer/pull/3#discussion_r33126615"},"pull_request":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3","id":38399157,"html_url":"https://github.com/SeyZ/jsonapi-serializer/pull/3","diff_url":"https://github.com/SeyZ/jsonapi-serializer/pull/3.diff","patch_url":"https://github.com/SeyZ/jsonapi-serializer/pull/3.patch","issue_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/3","number":3,"state":"open","locked":false,"title":"Add an opts to allow non-pluralized types","user":{"login":"digia","id":2545980,"avatar_url":"https://avatars.githubusercontent.com/u/2545980?v=3","gravatar_id":"","url":"https://api.github.com/users/digia","html_url":"https://github.com/digia","followers_url":"https://api.github.com/users/digia/followers","following_url":"https://api.github.com/users/digia/following{/other_user}","gists_url":"https://api.github.com/users/digia/gists{/gist_id}","starred_url":"https://api.github.com/users/digia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digia/subscriptions","organizations_url":"https://api.github.com/users/digia/orgs","repos_url":"https://api.github.com/users/digia/repos","events_url":"https://api.github.com/users/digia/events{/privacy}","received_events_url":"https://api.github.com/users/digia/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-24T01:12:00Z","updated_at":"2015-06-24T08:22:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"424176a2d8b128288fc7aec6b5f285a8a5770f19","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3/commits","review_comments_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3/comments","review_comment_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/3/comments","statuses_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/statuses/56bd8b6889c150138c2f5fb7081798c5bfc268ef","head":{"label":"digia:master","ref":"master","sha":"56bd8b6889c150138c2f5fb7081798c5bfc268ef","user":{"login":"digia","id":2545980,"avatar_url":"https://avatars.githubusercontent.com/u/2545980?v=3","gravatar_id":"","url":"https://api.github.com/users/digia","html_url":"https://github.com/digia","followers_url":"https://api.github.com/users/digia/followers","following_url":"https://api.github.com/users/digia/following{/other_user}","gists_url":"https://api.github.com/users/digia/gists{/gist_id}","starred_url":"https://api.github.com/users/digia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digia/subscriptions","organizations_url":"https://api.github.com/users/digia/orgs","repos_url":"https://api.github.com/users/digia/repos","events_url":"https://api.github.com/users/digia/events{/privacy}","received_events_url":"https://api.github.com/users/digia/received_events","type":"User","site_admin":false},"repo":{"id":37952675,"name":"jsonapi-serializer","full_name":"digia/jsonapi-serializer","owner":{"login":"digia","id":2545980,"avatar_url":"https://avatars.githubusercontent.com/u/2545980?v=3","gravatar_id":"","url":"https://api.github.com/users/digia","html_url":"https://github.com/digia","followers_url":"https://api.github.com/users/digia/followers","following_url":"https://api.github.com/users/digia/following{/other_user}","gists_url":"https://api.github.com/users/digia/gists{/gist_id}","starred_url":"https://api.github.com/users/digia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digia/subscriptions","organizations_url":"https://api.github.com/users/digia/orgs","repos_url":"https://api.github.com/users/digia/repos","events_url":"https://api.github.com/users/digia/events{/privacy}","received_events_url":"https://api.github.com/users/digia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/digia/jsonapi-serializer","description":"A Node.js framework agnostic library for serializing your data to JSON API","fork":true,"url":"https://api.github.com/repos/digia/jsonapi-serializer","forks_url":"https://api.github.com/repos/digia/jsonapi-serializer/forks","keys_url":"https://api.github.com/repos/digia/jsonapi-serializer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digia/jsonapi-serializer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digia/jsonapi-serializer/teams","hooks_url":"https://api.github.com/repos/digia/jsonapi-serializer/hooks","issue_events_url":"https://api.github.com/repos/digia/jsonapi-serializer/issues/events{/number}","events_url":"https://api.github.com/repos/digia/jsonapi-serializer/events","assignees_url":"https://api.github.com/repos/digia/jsonapi-serializer/assignees{/user}","branches_url":"https://api.github.com/repos/digia/jsonapi-serializer/branches{/branch}","tags_url":"https://api.github.com/repos/digia/jsonapi-serializer/tags","blobs_url":"https://api.github.com/repos/digia/jsonapi-serializer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digia/jsonapi-serializer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digia/jsonapi-serializer/git/refs{/sha}","trees_url":"https://api.github.com/repos/digia/jsonapi-serializer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digia/jsonapi-serializer/statuses/{sha}","languages_url":"https://api.github.com/repos/digia/jsonapi-serializer/languages","stargazers_url":"https://api.github.com/repos/digia/jsonapi-serializer/stargazers","contributors_url":"https://api.github.com/repos/digia/jsonapi-serializer/contributors","subscribers_url":"https://api.github.com/repos/digia/jsonapi-serializer/subscribers","subscription_url":"https://api.github.com/repos/digia/jsonapi-serializer/subscription","commits_url":"https://api.github.com/repos/digia/jsonapi-serializer/commits{/sha}","git_commits_url":"https://api.github.com/repos/digia/jsonapi-serializer/git/commits{/sha}","comments_url":"https://api.github.com/repos/digia/jsonapi-serializer/comments{/number}","issue_comment_url":"https://api.github.com/repos/digia/jsonapi-serializer/issues/comments{/number}","contents_url":"https://api.github.com/repos/digia/jsonapi-serializer/contents/{+path}","compare_url":"https://api.github.com/repos/digia/jsonapi-serializer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digia/jsonapi-serializer/merges","archive_url":"https://api.github.com/repos/digia/jsonapi-serializer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digia/jsonapi-serializer/downloads","issues_url":"https://api.github.com/repos/digia/jsonapi-serializer/issues{/number}","pulls_url":"https://api.github.com/repos/digia/jsonapi-serializer/pulls{/number}","milestones_url":"https://api.github.com/repos/digia/jsonapi-serializer/milestones{/number}","notifications_url":"https://api.github.com/repos/digia/jsonapi-serializer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digia/jsonapi-serializer/labels{/name}","releases_url":"https://api.github.com/repos/digia/jsonapi-serializer/releases{/id}","created_at":"2015-06-24T00:30:38Z","updated_at":"2015-06-24T00:30:38Z","pushed_at":"2015-06-24T01:09:22Z","git_url":"git://github.com/digia/jsonapi-serializer.git","ssh_url":"git@github.com:digia/jsonapi-serializer.git","clone_url":"https://github.com/digia/jsonapi-serializer.git","svn_url":"https://github.com/digia/jsonapi-serializer","homepage":null,"size":188,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SeyZ:master","ref":"master","sha":"e8a086c61d76a6c8843f199adc5f49856a6c24f4","user":{"login":"SeyZ","id":519129,"avatar_url":"https://avatars.githubusercontent.com/u/519129?v=3","gravatar_id":"","url":"https://api.github.com/users/SeyZ","html_url":"https://github.com/SeyZ","followers_url":"https://api.github.com/users/SeyZ/followers","following_url":"https://api.github.com/users/SeyZ/following{/other_user}","gists_url":"https://api.github.com/users/SeyZ/gists{/gist_id}","starred_url":"https://api.github.com/users/SeyZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeyZ/subscriptions","organizations_url":"https://api.github.com/users/SeyZ/orgs","repos_url":"https://api.github.com/users/SeyZ/repos","events_url":"https://api.github.com/users/SeyZ/events{/privacy}","received_events_url":"https://api.github.com/users/SeyZ/received_events","type":"User","site_admin":false},"repo":{"id":36664196,"name":"jsonapi-serializer","full_name":"SeyZ/jsonapi-serializer","owner":{"login":"SeyZ","id":519129,"avatar_url":"https://avatars.githubusercontent.com/u/519129?v=3","gravatar_id":"","url":"https://api.github.com/users/SeyZ","html_url":"https://github.com/SeyZ","followers_url":"https://api.github.com/users/SeyZ/followers","following_url":"https://api.github.com/users/SeyZ/following{/other_user}","gists_url":"https://api.github.com/users/SeyZ/gists{/gist_id}","starred_url":"https://api.github.com/users/SeyZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeyZ/subscriptions","organizations_url":"https://api.github.com/users/SeyZ/orgs","repos_url":"https://api.github.com/users/SeyZ/repos","events_url":"https://api.github.com/users/SeyZ/events{/privacy}","received_events_url":"https://api.github.com/users/SeyZ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SeyZ/jsonapi-serializer","description":"A Node.js framework agnostic library for serializing your data to JSON API","fork":false,"url":"https://api.github.com/repos/SeyZ/jsonapi-serializer","forks_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/forks","keys_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/teams","hooks_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/hooks","issue_events_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/events{/number}","events_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/events","assignees_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/assignees{/user}","branches_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/branches{/branch}","tags_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/tags","blobs_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/statuses/{sha}","languages_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/languages","stargazers_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/stargazers","contributors_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/contributors","subscribers_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/subscribers","subscription_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/subscription","commits_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/contents/{+path}","compare_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/merges","archive_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/downloads","issues_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues{/number}","pulls_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls{/number}","milestones_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/milestones{/number}","notifications_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/labels{/name}","releases_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/releases{/id}","created_at":"2015-06-01T13:57:56Z","updated_at":"2015-06-24T02:54:24Z","pushed_at":"2015-06-24T01:12:00Z","git_url":"git://github.com/SeyZ/jsonapi-serializer.git","ssh_url":"git@github.com:SeyZ/jsonapi-serializer.git","clone_url":"https://github.com/SeyZ/jsonapi-serializer.git","svn_url":"https://github.com/SeyZ/jsonapi-serializer","homepage":null,"size":188,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3"},"html":{"href":"https://github.com/SeyZ/jsonapi-serializer/pull/3"},"issue":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/3"},"comments":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/SeyZ/jsonapi-serializer/statuses/56bd8b6889c150138c2f5fb7081798c5bfc268ef"}}}}