{"action":"closed","number":239,"pull_request":{"url":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/239","id":257307981,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU3MzA3OTgx","html_url":"https://github.com/common-workflow-language/schema_salad/pull/239","diff_url":"https://github.com/common-workflow-language/schema_salad/pull/239.diff","patch_url":"https://github.com/common-workflow-language/schema_salad/pull/239.patch","issue_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/239","number":239,"state":"closed","locked":false,"title":"Add `load_document_by_string` for codegen","user":{"login":"tom-tan","id":4450141,"node_id":"MDQ6VXNlcjQ0NTAxNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/4450141?v=4","gravatar_id":"","url":"https://api.github.com/users/tom-tan","html_url":"https://github.com/tom-tan","followers_url":"https://api.github.com/users/tom-tan/followers","following_url":"https://api.github.com/users/tom-tan/following{/other_user}","gists_url":"https://api.github.com/users/tom-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-tan/subscriptions","organizations_url":"https://api.github.com/users/tom-tan/orgs","repos_url":"https://api.github.com/users/tom-tan/repos","events_url":"https://api.github.com/users/tom-tan/events{/privacy}","received_events_url":"https://api.github.com/users/tom-tan/received_events","type":"User","site_admin":false},"body":"This request adds `load_document_by_string` that takes a content of a CWL document rather than URI or relative path of the document to be loaded.\r\n\r\nWe are working on a [cwl-language-server](https://github.com/common-workflow-language/cwl-language-server) and currently we are start adding `publishDiagnostics` (It is to add syntax checking feature) by using a python module that is generated by `schema-salad-tool --codegen python`.\r\n\r\nAccording to the [spec of language server protocol](https://microsoft.github.io/language-server-protocol/specification#textDocument_didOpen), language servers have to manage the content of the document by using notifications from a client (i.e., editors and IDEs etc) and they should not read the document directly.\r\n\r\nHowever, the code-generated module does not provide an interface for that.\r\nIt currently provides `load_document` that takes a URI or relative path for the document but does not provide a function to load an argument string directly.\r\nThis request is to solve this problem.\r\n","created_at":"2019-03-01T03:33:06Z","updated_at":"2019-03-01T07:44:46Z","closed_at":"2019-03-01T07:44:46Z","merged_at":"2019-03-01T07:44:46Z","merge_commit_sha":"51ba870c0d64a5e0451ae1c9cc463df1c68ba0db","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/239/commits","review_comments_url":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/239/comments","review_comment_url":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/239/comments","statuses_url":"https://api.github.com/repos/common-workflow-language/schema_salad/statuses/85ef11aa8b1b57d63efe247a68cdb14a868b0371","head":{"label":"common-workflow-language:add-load_document_by_string","ref":"add-load_document_by_string","sha":"85ef11aa8b1b57d63efe247a68cdb14a868b0371","user":{"login":"common-workflow-language","id":9947495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5NDc0OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9947495?v=4","gravatar_id":"","url":"https://api.github.com/users/common-workflow-language","html_url":"https://github.com/common-workflow-language","followers_url":"https://api.github.com/users/common-workflow-language/followers","following_url":"https://api.github.com/users/common-workflow-language/following{/other_user}","gists_url":"https://api.github.com/users/common-workflow-language/gists{/gist_id}","starred_url":"https://api.github.com/users/common-workflow-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/common-workflow-language/subscriptions","organizations_url":"https://api.github.com/users/common-workflow-language/orgs","repos_url":"https://api.github.com/users/common-workflow-language/repos","events_url":"https://api.github.com/users/common-workflow-language/events{/privacy}","received_events_url":"https://api.github.com/users/common-workflow-language/received_events","type":"Organization","site_admin":false},"repo":{"id":40975824,"node_id":"MDEwOlJlcG9zaXRvcnk0MDk3NTgyNA==","name":"schema_salad","full_name":"common-workflow-language/schema_salad","private":false,"owner":{"login":"common-workflow-language","id":9947495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5NDc0OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9947495?v=4","gravatar_id":"","url":"https://api.github.com/users/common-workflow-language","html_url":"https://github.com/common-workflow-language","followers_url":"https://api.github.com/users/common-workflow-language/followers","following_url":"https://api.github.com/users/common-workflow-language/following{/other_user}","gists_url":"https://api.github.com/users/common-workflow-language/gists{/gist_id}","starred_url":"https://api.github.com/users/common-workflow-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/common-workflow-language/subscriptions","organizations_url":"https://api.github.com/users/common-workflow-language/orgs","repos_url":"https://api.github.com/users/common-workflow-language/repos","events_url":"https://api.github.com/users/common-workflow-language/events{/privacy}","received_events_url":"https://api.github.com/users/common-workflow-language/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/common-workflow-language/schema_salad","description":"Semantic Annotations for Linked Avro Data","fork":false,"url":"https://api.github.com/repos/common-workflow-language/schema_salad","forks_url":"https://api.github.com/repos/common-workflow-language/schema_salad/forks","keys_url":"https://api.github.com/repos/common-workflow-language/schema_salad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/common-workflow-language/schema_salad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/common-workflow-language/schema_salad/teams","hooks_url":"https://api.github.com/repos/common-workflow-language/schema_salad/hooks","issue_events_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/events{/number}","events_url":"https://api.github.com/repos/common-workflow-language/schema_salad/events","assignees_url":"https://api.github.com/repos/common-workflow-language/schema_salad/assignees{/user}","branches_url":"https://api.github.com/repos/common-workflow-language/schema_salad/branches{/branch}","tags_url":"https://api.github.com/repos/common-workflow-language/schema_salad/tags","blobs_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/refs{/sha}","trees_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/common-workflow-language/schema_salad/statuses/{sha}","languages_url":"https://api.github.com/repos/common-workflow-language/schema_salad/languages","stargazers_url":"https://api.github.com/repos/common-workflow-language/schema_salad/stargazers","contributors_url":"https://api.github.com/repos/common-workflow-language/schema_salad/contributors","subscribers_url":"https://api.github.com/repos/common-workflow-language/schema_salad/subscribers","subscription_url":"https://api.github.com/repos/common-workflow-language/schema_salad/subscription","commits_url":"https://api.github.com/repos/common-workflow-language/schema_salad/commits{/sha}","git_commits_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/commits{/sha}","comments_url":"https://api.github.com/repos/common-workflow-language/schema_salad/comments{/number}","issue_comment_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/comments{/number}","contents_url":"https://api.github.com/repos/common-workflow-language/schema_salad/contents/{+path}","compare_url":"https://api.github.com/repos/common-workflow-language/schema_salad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/common-workflow-language/schema_salad/merges","archive_url":"https://api.github.com/repos/common-workflow-language/schema_salad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/common-workflow-language/schema_salad/downloads","issues_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues{/number}","pulls_url":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls{/number}","milestones_url":"https://api.github.com/repos/common-workflow-language/schema_salad/milestones{/number}","notifications_url":"https://api.github.com/repos/common-workflow-language/schema_salad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/common-workflow-language/schema_salad/labels{/name}","releases_url":"https://api.github.com/repos/common-workflow-language/schema_salad/releases{/id}","deployments_url":"https://api.github.com/repos/common-workflow-language/schema_salad/deployments","created_at":"2015-08-18T14:11:27Z","updated_at":"2019-02-27T14:52:05Z","pushed_at":"2019-03-01T07:44:46Z","git_url":"git://github.com/common-workflow-language/schema_salad.git","ssh_url":"git@github.com:common-workflow-language/schema_salad.git","clone_url":"https://github.com/common-workflow-language/schema_salad.git","svn_url":"https://github.com/common-workflow-language/schema_salad","homepage":"https://www.commonwl.org/v1.0/SchemaSalad.html","size":1215,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":28,"open_issues":25,"watchers":26,"default_branch":"master"}},"base":{"label":"common-workflow-language:master","ref":"master","sha":"173f92386d4a34a935a38220c2eb8e63d96675c5","user":{"login":"common-workflow-language","id":9947495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5NDc0OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9947495?v=4","gravatar_id":"","url":"https://api.github.com/users/common-workflow-language","html_url":"https://github.com/common-workflow-language","followers_url":"https://api.github.com/users/common-workflow-language/followers","following_url":"https://api.github.com/users/common-workflow-language/following{/other_user}","gists_url":"https://api.github.com/users/common-workflow-language/gists{/gist_id}","starred_url":"https://api.github.com/users/common-workflow-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/common-workflow-language/subscriptions","organizations_url":"https://api.github.com/users/common-workflow-language/orgs","repos_url":"https://api.github.com/users/common-workflow-language/repos","events_url":"https://api.github.com/users/common-workflow-language/events{/privacy}","received_events_url":"https://api.github.com/users/common-workflow-language/received_events","type":"Organization","site_admin":false},"repo":{"id":40975824,"node_id":"MDEwOlJlcG9zaXRvcnk0MDk3NTgyNA==","name":"schema_salad","full_name":"common-workflow-language/schema_salad","private":false,"owner":{"login":"common-workflow-language","id":9947495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5NDc0OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9947495?v=4","gravatar_id":"","url":"https://api.github.com/users/common-workflow-language","html_url":"https://github.com/common-workflow-language","followers_url":"https://api.github.com/users/common-workflow-language/followers","following_url":"https://api.github.com/users/common-workflow-language/following{/other_user}","gists_url":"https://api.github.com/users/common-workflow-language/gists{/gist_id}","starred_url":"https://api.github.com/users/common-workflow-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/common-workflow-language/subscriptions","organizations_url":"https://api.github.com/users/common-workflow-language/orgs","repos_url":"https://api.github.com/users/common-workflow-language/repos","events_url":"https://api.github.com/users/common-workflow-language/events{/privacy}","received_events_url":"https://api.github.com/users/common-workflow-language/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/common-workflow-language/schema_salad","description":"Semantic Annotations for Linked Avro Data","fork":false,"url":"https://api.github.com/repos/common-workflow-language/schema_salad","forks_url":"https://api.github.com/repos/common-workflow-language/schema_salad/forks","keys_url":"https://api.github.com/repos/common-workflow-language/schema_salad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/common-workflow-language/schema_salad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/common-workflow-language/schema_salad/teams","hooks_url":"https://api.github.com/repos/common-workflow-language/schema_salad/hooks","issue_events_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/events{/number}","events_url":"https://api.github.com/repos/common-workflow-language/schema_salad/events","assignees_url":"https://api.github.com/repos/common-workflow-language/schema_salad/assignees{/user}","branches_url":"https://api.github.com/repos/common-workflow-language/schema_salad/branches{/branch}","tags_url":"https://api.github.com/repos/common-workflow-language/schema_salad/tags","blobs_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/refs{/sha}","trees_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/common-workflow-language/schema_salad/statuses/{sha}","languages_url":"https://api.github.com/repos/common-workflow-language/schema_salad/languages","stargazers_url":"https://api.github.com/repos/common-workflow-language/schema_salad/stargazers","contributors_url":"https://api.github.com/repos/common-workflow-language/schema_salad/contributors","subscribers_url":"https://api.github.com/repos/common-workflow-language/schema_salad/subscribers","subscription_url":"https://api.github.com/repos/common-workflow-language/schema_salad/subscription","commits_url":"https://api.github.com/repos/common-workflow-language/schema_salad/commits{/sha}","git_commits_url":"https://api.github.com/repos/common-workflow-language/schema_salad/git/commits{/sha}","comments_url":"https://api.github.com/repos/common-workflow-language/schema_salad/comments{/number}","issue_comment_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/comments{/number}","contents_url":"https://api.github.com/repos/common-workflow-language/schema_salad/contents/{+path}","compare_url":"https://api.github.com/repos/common-workflow-language/schema_salad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/common-workflow-language/schema_salad/merges","archive_url":"https://api.github.com/repos/common-workflow-language/schema_salad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/common-workflow-language/schema_salad/downloads","issues_url":"https://api.github.com/repos/common-workflow-language/schema_salad/issues{/number}","pulls_url":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls{/number}","milestones_url":"https://api.github.com/repos/common-workflow-language/schema_salad/milestones{/number}","notifications_url":"https://api.github.com/repos/common-workflow-language/schema_salad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/common-workflow-language/schema_salad/labels{/name}","releases_url":"https://api.github.com/repos/common-workflow-language/schema_salad/releases{/id}","deployments_url":"https://api.github.com/repos/common-workflow-language/schema_salad/deployments","created_at":"2015-08-18T14:11:27Z","updated_at":"2019-02-27T14:52:05Z","pushed_at":"2019-03-01T07:44:46Z","git_url":"git://github.com/common-workflow-language/schema_salad.git","ssh_url":"git@github.com:common-workflow-language/schema_salad.git","clone_url":"https://github.com/common-workflow-language/schema_salad.git","svn_url":"https://github.com/common-workflow-language/schema_salad","homepage":"https://www.commonwl.org/v1.0/SchemaSalad.html","size":1215,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":28,"open_issues":25,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/239"},"html":{"href":"https://github.com/common-workflow-language/schema_salad/pull/239"},"issue":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/239"},"comments":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/issues/239/comments"},"review_comments":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/239/comments"},"review_comment":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/pulls/239/commits"},"statuses":{"href":"https://api.github.com/repos/common-workflow-language/schema_salad/statuses/85ef11aa8b1b57d63efe247a68cdb14a868b0371"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mr-c","id":1330696,"node_id":"MDQ6VXNlcjEzMzA2OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1330696?v=4","gravatar_id":"","url":"https://api.github.com/users/mr-c","html_url":"https://github.com/mr-c","followers_url":"https://api.github.com/users/mr-c/followers","following_url":"https://api.github.com/users/mr-c/following{/other_user}","gists_url":"https://api.github.com/users/mr-c/gists{/gist_id}","starred_url":"https://api.github.com/users/mr-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mr-c/subscriptions","organizations_url":"https://api.github.com/users/mr-c/orgs","repos_url":"https://api.github.com/users/mr-c/repos","events_url":"https://api.github.com/users/mr-c/events{/privacy}","received_events_url":"https://api.github.com/users/mr-c/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":12,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"mr-c"}}