{"action":"created","comment":{"url":"https://api.github.com/repos/openpermissions/repository-srv/pulls/comments/71150692","id":71150692,"diff_hunk":"@@ -112,6 +112,10 @@ def store(cls, repository, payload, content_type='application/xml'):\n \n         if content_type == 'application/xml':\n             helper.validate(payload, 'xml')\n+        elif content_type == 'application/ld+json':\n+            g = helper.validate(payload, 'json-ld')\n+            payload = g.serialize()\n+            content_type = 'application/xml'\n ","path":"repository/models/framework/entity.py","position":8,"original_position":8,"commit_id":"10d4c6d47091d7fdbe6631815466de215127b9d5","original_commit_id":"10d4c6d47091d7fdbe6631815466de215127b9d5","user":{"login":"tconway","id":12034521,"avatar_url":"https://avatars.githubusercontent.com/u/12034521?v=3","gravatar_id":"","url":"https://api.github.com/users/tconway","html_url":"https://github.com/tconway","followers_url":"https://api.github.com/users/tconway/followers","following_url":"https://api.github.com/users/tconway/following{/other_user}","gists_url":"https://api.github.com/users/tconway/gists{/gist_id}","starred_url":"https://api.github.com/users/tconway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tconway/subscriptions","organizations_url":"https://api.github.com/users/tconway/orgs","repos_url":"https://api.github.com/users/tconway/repos","events_url":"https://api.github.com/users/tconway/events{/privacy}","received_events_url":"https://api.github.com/users/tconway/received_events","type":"User","site_admin":false},"body":"Then we don't validate it at this stage. To be honest i'm not sure why we were originally validating the xml here because it's also done in the controller.","created_at":"2016-07-18T13:54:51Z","updated_at":"2016-07-18T13:54:51Z","html_url":"https://github.com/openpermissions/repository-srv/pull/13#discussion_r71150692","pull_request_url":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/openpermissions/repository-srv/pulls/comments/71150692"},"html":{"href":"https://github.com/openpermissions/repository-srv/pull/13#discussion_r71150692"},"pull_request":{"href":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13","id":77779172,"html_url":"https://github.com/openpermissions/repository-srv/pull/13","diff_url":"https://github.com/openpermissions/repository-srv/pull/13.diff","patch_url":"https://github.com/openpermissions/repository-srv/pull/13.patch","issue_url":"https://api.github.com/repos/openpermissions/repository-srv/issues/13","number":13,"state":"open","locked":false,"title":"Allow json ld format for creating assets","user":{"login":"tconway","id":12034521,"avatar_url":"https://avatars.githubusercontent.com/u/12034521?v=3","gravatar_id":"","url":"https://api.github.com/users/tconway","html_url":"https://github.com/tconway","followers_url":"https://api.github.com/users/tconway/followers","following_url":"https://api.github.com/users/tconway/following{/other_user}","gists_url":"https://api.github.com/users/tconway/gists{/gist_id}","starred_url":"https://api.github.com/users/tconway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tconway/subscriptions","organizations_url":"https://api.github.com/users/tconway/orgs","repos_url":"https://api.github.com/users/tconway/repos","events_url":"https://api.github.com/users/tconway/events{/privacy}","received_events_url":"https://api.github.com/users/tconway/received_events","type":"User","site_admin":false},"body":"http://bamboo.digicat.io/browse/CHCL-MPT199-3","created_at":"2016-07-18T09:23:09Z","updated_at":"2016-07-18T13:54:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"617650b0f8699234d7e7ee09137b921c0e7fabbc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13/commits","review_comments_url":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13/comments","review_comment_url":"https://api.github.com/repos/openpermissions/repository-srv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openpermissions/repository-srv/issues/13/comments","statuses_url":"https://api.github.com/repos/openpermissions/repository-srv/statuses/10d4c6d47091d7fdbe6631815466de215127b9d5","head":{"label":"openpermissions:OPP-59","ref":"OPP-59","sha":"10d4c6d47091d7fdbe6631815466de215127b9d5","user":{"login":"openpermissions","id":18423101,"avatar_url":"https://avatars.githubusercontent.com/u/18423101?v=3","gravatar_id":"","url":"https://api.github.com/users/openpermissions","html_url":"https://github.com/openpermissions","followers_url":"https://api.github.com/users/openpermissions/followers","following_url":"https://api.github.com/users/openpermissions/following{/other_user}","gists_url":"https://api.github.com/users/openpermissions/gists{/gist_id}","starred_url":"https://api.github.com/users/openpermissions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpermissions/subscriptions","organizations_url":"https://api.github.com/users/openpermissions/orgs","repos_url":"https://api.github.com/users/openpermissions/repos","events_url":"https://api.github.com/users/openpermissions/events{/privacy}","received_events_url":"https://api.github.com/users/openpermissions/received_events","type":"Organization","site_admin":false},"repo":{"id":57401948,"name":"repository-srv","full_name":"openpermissions/repository-srv","owner":{"login":"openpermissions","id":18423101,"avatar_url":"https://avatars.githubusercontent.com/u/18423101?v=3","gravatar_id":"","url":"https://api.github.com/users/openpermissions","html_url":"https://github.com/openpermissions","followers_url":"https://api.github.com/users/openpermissions/followers","following_url":"https://api.github.com/users/openpermissions/following{/other_user}","gists_url":"https://api.github.com/users/openpermissions/gists{/gist_id}","starred_url":"https://api.github.com/users/openpermissions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpermissions/subscriptions","organizations_url":"https://api.github.com/users/openpermissions/orgs","repos_url":"https://api.github.com/users/openpermissions/repos","events_url":"https://api.github.com/users/openpermissions/events{/privacy}","received_events_url":"https://api.github.com/users/openpermissions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openpermissions/repository-srv","description":"Open Permissions Platform - Repository Service","fork":false,"url":"https://api.github.com/repos/openpermissions/repository-srv","forks_url":"https://api.github.com/repos/openpermissions/repository-srv/forks","keys_url":"https://api.github.com/repos/openpermissions/repository-srv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openpermissions/repository-srv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openpermissions/repository-srv/teams","hooks_url":"https://api.github.com/repos/openpermissions/repository-srv/hooks","issue_events_url":"https://api.github.com/repos/openpermissions/repository-srv/issues/events{/number}","events_url":"https://api.github.com/repos/openpermissions/repository-srv/events","assignees_url":"https://api.github.com/repos/openpermissions/repository-srv/assignees{/user}","branches_url":"https://api.github.com/repos/openpermissions/repository-srv/branches{/branch}","tags_url":"https://api.github.com/repos/openpermissions/repository-srv/tags","blobs_url":"https://api.github.com/repos/openpermissions/repository-srv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openpermissions/repository-srv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openpermissions/repository-srv/git/refs{/sha}","trees_url":"https://api.github.com/repos/openpermissions/repository-srv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openpermissions/repository-srv/statuses/{sha}","languages_url":"https://api.github.com/repos/openpermissions/repository-srv/languages","stargazers_url":"https://api.github.com/repos/openpermissions/repository-srv/stargazers","contributors_url":"https://api.github.com/repos/openpermissions/repository-srv/contributors","subscribers_url":"https://api.github.com/repos/openpermissions/repository-srv/subscribers","subscription_url":"https://api.github.com/repos/openpermissions/repository-srv/subscription","commits_url":"https://api.github.com/repos/openpermissions/repository-srv/commits{/sha}","git_commits_url":"https://api.github.com/repos/openpermissions/repository-srv/git/commits{/sha}","comments_url":"https://api.github.com/repos/openpermissions/repository-srv/comments{/number}","issue_comment_url":"https://api.github.com/repos/openpermissions/repository-srv/issues/comments{/number}","contents_url":"https://api.github.com/repos/openpermissions/repository-srv/contents/{+path}","compare_url":"https://api.github.com/repos/openpermissions/repository-srv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openpermissions/repository-srv/merges","archive_url":"https://api.github.com/repos/openpermissions/repository-srv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openpermissions/repository-srv/downloads","issues_url":"https://api.github.com/repos/openpermissions/repository-srv/issues{/number}","pulls_url":"https://api.github.com/repos/openpermissions/repository-srv/pulls{/number}","milestones_url":"https://api.github.com/repos/openpermissions/repository-srv/milestones{/number}","notifications_url":"https://api.github.com/repos/openpermissions/repository-srv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openpermissions/repository-srv/labels{/name}","releases_url":"https://api.github.com/repos/openpermissions/repository-srv/releases{/id}","deployments_url":"https://api.github.com/repos/openpermissions/repository-srv/deployments","created_at":"2016-04-29T17:33:29Z","updated_at":"2016-05-03T20:10:50Z","pushed_at":"2016-07-18T09:23:09Z","git_url":"git://github.com/openpermissions/repository-srv.git","ssh_url":"git@github.com:openpermissions/repository-srv.git","clone_url":"https://github.com/openpermissions/repository-srv.git","svn_url":"https://github.com/openpermissions/repository-srv","homepage":"http://openpermissions.org","size":233,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"openpermissions:master","ref":"master","sha":"c8782ec48a74877591cd8bed5b60202c911682cf","user":{"login":"openpermissions","id":18423101,"avatar_url":"https://avatars.githubusercontent.com/u/18423101?v=3","gravatar_id":"","url":"https://api.github.com/users/openpermissions","html_url":"https://github.com/openpermissions","followers_url":"https://api.github.com/users/openpermissions/followers","following_url":"https://api.github.com/users/openpermissions/following{/other_user}","gists_url":"https://api.github.com/users/openpermissions/gists{/gist_id}","starred_url":"https://api.github.com/users/openpermissions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpermissions/subscriptions","organizations_url":"https://api.github.com/users/openpermissions/orgs","repos_url":"https://api.github.com/users/openpermissions/repos","events_url":"https://api.github.com/users/openpermissions/events{/privacy}","received_events_url":"https://api.github.com/users/openpermissions/received_events","type":"Organization","site_admin":false},"repo":{"id":57401948,"name":"repository-srv","full_name":"openpermissions/repository-srv","owner":{"login":"openpermissions","id":18423101,"avatar_url":"https://avatars.githubusercontent.com/u/18423101?v=3","gravatar_id":"","url":"https://api.github.com/users/openpermissions","html_url":"https://github.com/openpermissions","followers_url":"https://api.github.com/users/openpermissions/followers","following_url":"https://api.github.com/users/openpermissions/following{/other_user}","gists_url":"https://api.github.com/users/openpermissions/gists{/gist_id}","starred_url":"https://api.github.com/users/openpermissions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpermissions/subscriptions","organizations_url":"https://api.github.com/users/openpermissions/orgs","repos_url":"https://api.github.com/users/openpermissions/repos","events_url":"https://api.github.com/users/openpermissions/events{/privacy}","received_events_url":"https://api.github.com/users/openpermissions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openpermissions/repository-srv","description":"Open Permissions Platform - Repository Service","fork":false,"url":"https://api.github.com/repos/openpermissions/repository-srv","forks_url":"https://api.github.com/repos/openpermissions/repository-srv/forks","keys_url":"https://api.github.com/repos/openpermissions/repository-srv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openpermissions/repository-srv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openpermissions/repository-srv/teams","hooks_url":"https://api.github.com/repos/openpermissions/repository-srv/hooks","issue_events_url":"https://api.github.com/repos/openpermissions/repository-srv/issues/events{/number}","events_url":"https://api.github.com/repos/openpermissions/repository-srv/events","assignees_url":"https://api.github.com/repos/openpermissions/repository-srv/assignees{/user}","branches_url":"https://api.github.com/repos/openpermissions/repository-srv/branches{/branch}","tags_url":"https://api.github.com/repos/openpermissions/repository-srv/tags","blobs_url":"https://api.github.com/repos/openpermissions/repository-srv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openpermissions/repository-srv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openpermissions/repository-srv/git/refs{/sha}","trees_url":"https://api.github.com/repos/openpermissions/repository-srv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openpermissions/repository-srv/statuses/{sha}","languages_url":"https://api.github.com/repos/openpermissions/repository-srv/languages","stargazers_url":"https://api.github.com/repos/openpermissions/repository-srv/stargazers","contributors_url":"https://api.github.com/repos/openpermissions/repository-srv/contributors","subscribers_url":"https://api.github.com/repos/openpermissions/repository-srv/subscribers","subscription_url":"https://api.github.com/repos/openpermissions/repository-srv/subscription","commits_url":"https://api.github.com/repos/openpermissions/repository-srv/commits{/sha}","git_commits_url":"https://api.github.com/repos/openpermissions/repository-srv/git/commits{/sha}","comments_url":"https://api.github.com/repos/openpermissions/repository-srv/comments{/number}","issue_comment_url":"https://api.github.com/repos/openpermissions/repository-srv/issues/comments{/number}","contents_url":"https://api.github.com/repos/openpermissions/repository-srv/contents/{+path}","compare_url":"https://api.github.com/repos/openpermissions/repository-srv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openpermissions/repository-srv/merges","archive_url":"https://api.github.com/repos/openpermissions/repository-srv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openpermissions/repository-srv/downloads","issues_url":"https://api.github.com/repos/openpermissions/repository-srv/issues{/number}","pulls_url":"https://api.github.com/repos/openpermissions/repository-srv/pulls{/number}","milestones_url":"https://api.github.com/repos/openpermissions/repository-srv/milestones{/number}","notifications_url":"https://api.github.com/repos/openpermissions/repository-srv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openpermissions/repository-srv/labels{/name}","releases_url":"https://api.github.com/repos/openpermissions/repository-srv/releases{/id}","deployments_url":"https://api.github.com/repos/openpermissions/repository-srv/deployments","created_at":"2016-04-29T17:33:29Z","updated_at":"2016-05-03T20:10:50Z","pushed_at":"2016-07-18T09:23:09Z","git_url":"git://github.com/openpermissions/repository-srv.git","ssh_url":"git@github.com:openpermissions/repository-srv.git","clone_url":"https://github.com/openpermissions/repository-srv.git","svn_url":"https://github.com/openpermissions/repository-srv","homepage":"http://openpermissions.org","size":233,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13"},"html":{"href":"https://github.com/openpermissions/repository-srv/pull/13"},"issue":{"href":"https://api.github.com/repos/openpermissions/repository-srv/issues/13"},"comments":{"href":"https://api.github.com/repos/openpermissions/repository-srv/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/openpermissions/repository-srv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openpermissions/repository-srv/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/openpermissions/repository-srv/statuses/10d4c6d47091d7fdbe6631815466de215127b9d5"}}}}
{"actor":{"display_login":"tconway"}}