{"action":"closed","number":22,"pull_request":{"url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/22","id":62009286,"html_url":"https://github.com/derekdowling/go-json-spec-handler/pull/22","diff_url":"https://github.com/derekdowling/go-json-spec-handler/pull/22.diff","patch_url":"https://github.com/derekdowling/go-json-spec-handler/pull/22.patch","issue_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues/22","number":22,"state":"closed","locked":false,"title":"Fix #20 List containing a single object not marshaled as an array","user":{"login":"petercgrant","id":1656850,"avatar_url":"https://avatars.githubusercontent.com/u/1656850?v=3","gravatar_id":"","url":"https://api.github.com/users/petercgrant","html_url":"https://github.com/petercgrant","followers_url":"https://api.github.com/users/petercgrant/followers","following_url":"https://api.github.com/users/petercgrant/following{/other_user}","gists_url":"https://api.github.com/users/petercgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/petercgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petercgrant/subscriptions","organizations_url":"https://api.github.com/users/petercgrant/orgs","repos_url":"https://api.github.com/users/petercgrant/repos","events_url":"https://api.github.com/users/petercgrant/events{/privacy}","received_events_url":"https://api.github.com/users/petercgrant/received_events","type":"User","site_admin":false},"body":"@derekdowling This does not address the unmarshal/parse side of the issue, but personally I'm okay with being more lenient there. If we must detect whether we received an array or object, we would need to move the logic from https://github.com/derekdowling/go-json-spec-handler/blob/master/list.go#L37 into the `Parser` ","created_at":"2016-03-08T01:11:49Z","updated_at":"2016-03-08T20:45:38Z","closed_at":"2016-03-08T20:45:38Z","merged_at":"2016-03-08T20:45:38Z","merge_commit_sha":"aad28b0ffde4241259a57b667d12aca474cdf035","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/22/commits","review_comments_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/22/comments","review_comment_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues/22/comments","statuses_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/statuses/6163f060140e2399544264128cb53b0c511260fc","head":{"label":"picmonkey:list-serialize","ref":"list-serialize","sha":"6163f060140e2399544264128cb53b0c511260fc","user":{"login":"picmonkey","id":1489385,"avatar_url":"https://avatars.githubusercontent.com/u/1489385?v=3","gravatar_id":"","url":"https://api.github.com/users/picmonkey","html_url":"https://github.com/picmonkey","followers_url":"https://api.github.com/users/picmonkey/followers","following_url":"https://api.github.com/users/picmonkey/following{/other_user}","gists_url":"https://api.github.com/users/picmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/picmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picmonkey/subscriptions","organizations_url":"https://api.github.com/users/picmonkey/orgs","repos_url":"https://api.github.com/users/picmonkey/repos","events_url":"https://api.github.com/users/picmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/picmonkey/received_events","type":"Organization","site_admin":false},"repo":{"id":52107569,"name":"go-json-spec-handler","full_name":"picmonkey/go-json-spec-handler","owner":{"login":"picmonkey","id":1489385,"avatar_url":"https://avatars.githubusercontent.com/u/1489385?v=3","gravatar_id":"","url":"https://api.github.com/users/picmonkey","html_url":"https://github.com/picmonkey","followers_url":"https://api.github.com/users/picmonkey/followers","following_url":"https://api.github.com/users/picmonkey/following{/other_user}","gists_url":"https://api.github.com/users/picmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/picmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picmonkey/subscriptions","organizations_url":"https://api.github.com/users/picmonkey/orgs","repos_url":"https://api.github.com/users/picmonkey/repos","events_url":"https://api.github.com/users/picmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/picmonkey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/picmonkey/go-json-spec-handler","description":"Simple JSON API Spec Compatibility in Golang","fork":true,"url":"https://api.github.com/repos/picmonkey/go-json-spec-handler","forks_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/forks","keys_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/teams","hooks_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/hooks","issue_events_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/issues/events{/number}","events_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/events","assignees_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/assignees{/user}","branches_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/branches{/branch}","tags_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/tags","blobs_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/git/refs{/sha}","trees_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/statuses/{sha}","languages_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/languages","stargazers_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/stargazers","contributors_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/contributors","subscribers_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/subscribers","subscription_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/subscription","commits_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/commits{/sha}","git_commits_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/git/commits{/sha}","comments_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/comments{/number}","issue_comment_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/issues/comments{/number}","contents_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/contents/{+path}","compare_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/merges","archive_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/downloads","issues_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/issues{/number}","pulls_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/pulls{/number}","milestones_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/milestones{/number}","notifications_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/labels{/name}","releases_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/releases{/id}","deployments_url":"https://api.github.com/repos/picmonkey/go-json-spec-handler/deployments","created_at":"2016-02-19T18:24:52Z","updated_at":"2016-02-19T18:24:53Z","pushed_at":"2016-03-08T00:49:29Z","git_url":"git://github.com/picmonkey/go-json-spec-handler.git","ssh_url":"git@github.com:picmonkey/go-json-spec-handler.git","clone_url":"https://github.com/picmonkey/go-json-spec-handler.git","svn_url":"https://github.com/picmonkey/go-json-spec-handler","homepage":"","size":1430,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"derekdowling:master","ref":"master","sha":"ff38e1c537a4d3a57ccccf78ed93a085fc1493c6","user":{"login":"derekdowling","id":613964,"avatar_url":"https://avatars.githubusercontent.com/u/613964?v=3","gravatar_id":"","url":"https://api.github.com/users/derekdowling","html_url":"https://github.com/derekdowling","followers_url":"https://api.github.com/users/derekdowling/followers","following_url":"https://api.github.com/users/derekdowling/following{/other_user}","gists_url":"https://api.github.com/users/derekdowling/gists{/gist_id}","starred_url":"https://api.github.com/users/derekdowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekdowling/subscriptions","organizations_url":"https://api.github.com/users/derekdowling/orgs","repos_url":"https://api.github.com/users/derekdowling/repos","events_url":"https://api.github.com/users/derekdowling/events{/privacy}","received_events_url":"https://api.github.com/users/derekdowling/received_events","type":"User","site_admin":false},"repo":{"id":45999453,"name":"go-json-spec-handler","full_name":"derekdowling/go-json-spec-handler","owner":{"login":"derekdowling","id":613964,"avatar_url":"https://avatars.githubusercontent.com/u/613964?v=3","gravatar_id":"","url":"https://api.github.com/users/derekdowling","html_url":"https://github.com/derekdowling","followers_url":"https://api.github.com/users/derekdowling/followers","following_url":"https://api.github.com/users/derekdowling/following{/other_user}","gists_url":"https://api.github.com/users/derekdowling/gists{/gist_id}","starred_url":"https://api.github.com/users/derekdowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekdowling/subscriptions","organizations_url":"https://api.github.com/users/derekdowling/orgs","repos_url":"https://api.github.com/users/derekdowling/repos","events_url":"https://api.github.com/users/derekdowling/events{/privacy}","received_events_url":"https://api.github.com/users/derekdowling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/derekdowling/go-json-spec-handler","description":"Simple JSON API Spec Compatibility in Golang","fork":false,"url":"https://api.github.com/repos/derekdowling/go-json-spec-handler","forks_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/forks","keys_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/teams","hooks_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/hooks","issue_events_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues/events{/number}","events_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/events","assignees_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/assignees{/user}","branches_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/branches{/branch}","tags_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/tags","blobs_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/git/refs{/sha}","trees_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/statuses/{sha}","languages_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/languages","stargazers_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/stargazers","contributors_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/contributors","subscribers_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/subscribers","subscription_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/subscription","commits_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/commits{/sha}","git_commits_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/git/commits{/sha}","comments_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/comments{/number}","issue_comment_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues/comments{/number}","contents_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/contents/{+path}","compare_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/merges","archive_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/downloads","issues_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues{/number}","pulls_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls{/number}","milestones_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/milestones{/number}","notifications_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/labels{/name}","releases_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/releases{/id}","deployments_url":"https://api.github.com/repos/derekdowling/go-json-spec-handler/deployments","created_at":"2015-11-11T17:55:47Z","updated_at":"2016-03-04T16:19:25Z","pushed_at":"2016-03-08T20:45:38Z","git_url":"git://github.com/derekdowling/go-json-spec-handler.git","ssh_url":"git@github.com:derekdowling/go-json-spec-handler.git","clone_url":"https://github.com/derekdowling/go-json-spec-handler.git","svn_url":"https://github.com/derekdowling/go-json-spec-handler","homepage":"","size":1446,"stargazers_count":14,"watchers_count":14,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/22"},"html":{"href":"https://github.com/derekdowling/go-json-spec-handler/pull/22"},"issue":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues/22"},"comments":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/derekdowling/go-json-spec-handler/statuses/6163f060140e2399544264128cb53b0c511260fc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"derekdowling","id":613964,"avatar_url":"https://avatars.githubusercontent.com/u/613964?v=3","gravatar_id":"","url":"https://api.github.com/users/derekdowling","html_url":"https://github.com/derekdowling","followers_url":"https://api.github.com/users/derekdowling/followers","following_url":"https://api.github.com/users/derekdowling/following{/other_user}","gists_url":"https://api.github.com/users/derekdowling/gists{/gist_id}","starred_url":"https://api.github.com/users/derekdowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekdowling/subscriptions","organizations_url":"https://api.github.com/users/derekdowling/orgs","repos_url":"https://api.github.com/users/derekdowling/repos","events_url":"https://api.github.com/users/derekdowling/events{/privacy}","received_events_url":"https://api.github.com/users/derekdowling/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":88,"deletions":12,"changed_files":4}}