{"action":"created","comment":{"url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/comments/184724881","pull_request_review_id":115983941,"id":184724881,"diff_hunk":"@@ -151,26 +189,12 @@ module.exports = makeSchema(\n         maxLength: 255\n       },\n       // TODO: do we need to break these all apart too? :-/\n-      get: {\n-        description: ResourceMethodGetSchema.schema.description,\n-        $ref: ResourceMethodGetSchema.id\n-      },\n-      hook: {\n-        description: ResourceMethodHookSchema.schema.description,\n-        $ref: ResourceMethodHookSchema.id\n-      },\n-      list: {\n-        description: ResourceMethodListSchema.schema.description,\n-        $ref: ResourceMethodListSchema.id\n-      },\n-      search: {\n-        description: ResourceMethodSearchSchema.schema.description,\n-        $ref: ResourceMethodSearchSchema.id\n-      },\n-      create: {\n-        description: ResourceMethodCreateSchema.schema.description,\n-        $ref: ResourceMethodCreateSchema.id\n-      },\n+      get: makeSingleOrNestedMultiple(ResourceMethodGetSchema),\n+      hook: makeSingleOrNestedMultiple(ResourceMethodHookSchema),\n+      list: makeSingleOrNestedMultiple(ResourceMethodListSchema),\n+      search: makeSingleOrNestedMultiple(ResourceMethodSearchSchema),\n+      create: makeSingleOrNestedMultiple(ResourceMethodCreateSchema),\n+      misc: makeSingleOrNestedMultiple(ResourceMethodMiscSchema),","path":"lib/schemas/ResourceSchema.js","position":84,"original_position":84,"commit_id":"3bc48642b6b29df21a1d8238e5749d1021891963","original_commit_id":"3bc48642b6b29df21a1d8238e5749d1021891963","user":{"login":"bcooksey","id":221726,"avatar_url":"https://avatars3.githubusercontent.com/u/221726?v=4","gravatar_id":"","url":"https://api.github.com/users/bcooksey","html_url":"https://github.com/bcooksey","followers_url":"https://api.github.com/users/bcooksey/followers","following_url":"https://api.github.com/users/bcooksey/following{/other_user}","gists_url":"https://api.github.com/users/bcooksey/gists{/gist_id}","starred_url":"https://api.github.com/users/bcooksey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcooksey/subscriptions","organizations_url":"https://api.github.com/users/bcooksey/orgs","repos_url":"https://api.github.com/users/bcooksey/repos","events_url":"https://api.github.com/users/bcooksey/events{/privacy}","received_events_url":"https://api.github.com/users/bcooksey/received_events","type":"User","site_admin":false},"body":"Is there a more self-documenting name we could give this, like `additionalActions` or `additionalOperations`?","created_at":"2018-04-27T15:35:16Z","updated_at":"2018-04-27T15:42:37Z","html_url":"https://github.com/zapier/zapier-platform-schema/pull/43#discussion_r184724881","pull_request_url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/comments/184724881"},"html":{"href":"https://github.com/zapier/zapier-platform-schema/pull/43#discussion_r184724881"},"pull_request":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43"}},"in_reply_to_id":184585323},"pull_request":{"url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43","id":184516252,"html_url":"https://github.com/zapier/zapier-platform-schema/pull/43","diff_url":"https://github.com/zapier/zapier-platform-schema/pull/43.diff","patch_url":"https://github.com/zapier/zapier-platform-schema/pull/43.patch","issue_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/43","number":43,"state":"open","locked":false,"title":"Add multiple actions for resources and a misc category.","user":{"login":"bryanhelmig","id":534177,"avatar_url":"https://avatars0.githubusercontent.com/u/534177?v=4","gravatar_id":"","url":"https://api.github.com/users/bryanhelmig","html_url":"https://github.com/bryanhelmig","followers_url":"https://api.github.com/users/bryanhelmig/followers","following_url":"https://api.github.com/users/bryanhelmig/following{/other_user}","gists_url":"https://api.github.com/users/bryanhelmig/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanhelmig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanhelmig/subscriptions","organizations_url":"https://api.github.com/users/bryanhelmig/orgs","repos_url":"https://api.github.com/users/bryanhelmig/repos","events_url":"https://api.github.com/users/bryanhelmig/events{/privacy}","received_events_url":"https://api.github.com/users/bryanhelmig/received_events","type":"User","site_admin":false},"body":"It is really common to want to provide multiple triggers/creates/searches for a resource:\r\n\r\n* `New Candidate`\r\n* `New Candidate in Stage`\r\n\r\nAnd also to do miscellaneous actions that don't map to CRUD:\r\n\r\n* `Disqualify Candidate`\r\n* `Move Candidate`\r\n\r\nSo this adds a simple layer of nesting for resources. Need to update zapier-platform-core to be aware -- should be straightforward.","created_at":"2018-04-27T03:35:56Z","updated_at":"2018-04-27T15:42:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61a9a9c75340b8c12fd19d8359254be03b13b0f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43/commits","review_comments_url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43/comments","review_comment_url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/43/comments","statuses_url":"https://api.github.com/repos/zapier/zapier-platform-schema/statuses/3bc48642b6b29df21a1d8238e5749d1021891963","head":{"label":"zapier:multiple-resource-actions","ref":"multiple-resource-actions","sha":"3bc48642b6b29df21a1d8238e5749d1021891963","user":{"login":"zapier","id":1261889,"avatar_url":"https://avatars1.githubusercontent.com/u/1261889?v=4","gravatar_id":"","url":"https://api.github.com/users/zapier","html_url":"https://github.com/zapier","followers_url":"https://api.github.com/users/zapier/followers","following_url":"https://api.github.com/users/zapier/following{/other_user}","gists_url":"https://api.github.com/users/zapier/gists{/gist_id}","starred_url":"https://api.github.com/users/zapier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapier/subscriptions","organizations_url":"https://api.github.com/users/zapier/orgs","repos_url":"https://api.github.com/users/zapier/repos","events_url":"https://api.github.com/users/zapier/events{/privacy}","received_events_url":"https://api.github.com/users/zapier/received_events","type":"Organization","site_admin":false},"repo":{"id":72045888,"name":"zapier-platform-schema","full_name":"zapier/zapier-platform-schema","owner":{"login":"zapier","id":1261889,"avatar_url":"https://avatars1.githubusercontent.com/u/1261889?v=4","gravatar_id":"","url":"https://api.github.com/users/zapier","html_url":"https://github.com/zapier","followers_url":"https://api.github.com/users/zapier/followers","following_url":"https://api.github.com/users/zapier/following{/other_user}","gists_url":"https://api.github.com/users/zapier/gists{/gist_id}","starred_url":"https://api.github.com/users/zapier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapier/subscriptions","organizations_url":"https://api.github.com/users/zapier/orgs","repos_url":"https://api.github.com/users/zapier/repos","events_url":"https://api.github.com/users/zapier/events{/privacy}","received_events_url":"https://api.github.com/users/zapier/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zapier/zapier-platform-schema","description":":book: The core Zapier Platform schema.","fork":false,"url":"https://api.github.com/repos/zapier/zapier-platform-schema","forks_url":"https://api.github.com/repos/zapier/zapier-platform-schema/forks","keys_url":"https://api.github.com/repos/zapier/zapier-platform-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zapier/zapier-platform-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zapier/zapier-platform-schema/teams","hooks_url":"https://api.github.com/repos/zapier/zapier-platform-schema/hooks","issue_events_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/events{/number}","events_url":"https://api.github.com/repos/zapier/zapier-platform-schema/events","assignees_url":"https://api.github.com/repos/zapier/zapier-platform-schema/assignees{/user}","branches_url":"https://api.github.com/repos/zapier/zapier-platform-schema/branches{/branch}","tags_url":"https://api.github.com/repos/zapier/zapier-platform-schema/tags","blobs_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zapier/zapier-platform-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/zapier/zapier-platform-schema/languages","stargazers_url":"https://api.github.com/repos/zapier/zapier-platform-schema/stargazers","contributors_url":"https://api.github.com/repos/zapier/zapier-platform-schema/contributors","subscribers_url":"https://api.github.com/repos/zapier/zapier-platform-schema/subscribers","subscription_url":"https://api.github.com/repos/zapier/zapier-platform-schema/subscription","commits_url":"https://api.github.com/repos/zapier/zapier-platform-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/zapier/zapier-platform-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/zapier/zapier-platform-schema/contents/{+path}","compare_url":"https://api.github.com/repos/zapier/zapier-platform-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zapier/zapier-platform-schema/merges","archive_url":"https://api.github.com/repos/zapier/zapier-platform-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zapier/zapier-platform-schema/downloads","issues_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues{/number}","pulls_url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/zapier/zapier-platform-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/zapier/zapier-platform-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zapier/zapier-platform-schema/labels{/name}","releases_url":"https://api.github.com/repos/zapier/zapier-platform-schema/releases{/id}","deployments_url":"https://api.github.com/repos/zapier/zapier-platform-schema/deployments","created_at":"2016-10-26T21:27:26Z","updated_at":"2018-04-23T07:46:26Z","pushed_at":"2018-04-27T03:35:57Z","git_url":"git://github.com/zapier/zapier-platform-schema.git","ssh_url":"git@github.com:zapier/zapier-platform-schema.git","clone_url":"https://github.com/zapier/zapier-platform-schema.git","svn_url":"https://github.com/zapier/zapier-platform-schema","homepage":"https://zapier.github.io/zapier-platform-cli/","size":341,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":7,"open_issues":4,"watchers":6,"default_branch":"master"}},"base":{"label":"zapier:master","ref":"master","sha":"b5aec204b916b60b252c0a40f2206ffe27d531be","user":{"login":"zapier","id":1261889,"avatar_url":"https://avatars1.githubusercontent.com/u/1261889?v=4","gravatar_id":"","url":"https://api.github.com/users/zapier","html_url":"https://github.com/zapier","followers_url":"https://api.github.com/users/zapier/followers","following_url":"https://api.github.com/users/zapier/following{/other_user}","gists_url":"https://api.github.com/users/zapier/gists{/gist_id}","starred_url":"https://api.github.com/users/zapier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapier/subscriptions","organizations_url":"https://api.github.com/users/zapier/orgs","repos_url":"https://api.github.com/users/zapier/repos","events_url":"https://api.github.com/users/zapier/events{/privacy}","received_events_url":"https://api.github.com/users/zapier/received_events","type":"Organization","site_admin":false},"repo":{"id":72045888,"name":"zapier-platform-schema","full_name":"zapier/zapier-platform-schema","owner":{"login":"zapier","id":1261889,"avatar_url":"https://avatars1.githubusercontent.com/u/1261889?v=4","gravatar_id":"","url":"https://api.github.com/users/zapier","html_url":"https://github.com/zapier","followers_url":"https://api.github.com/users/zapier/followers","following_url":"https://api.github.com/users/zapier/following{/other_user}","gists_url":"https://api.github.com/users/zapier/gists{/gist_id}","starred_url":"https://api.github.com/users/zapier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapier/subscriptions","organizations_url":"https://api.github.com/users/zapier/orgs","repos_url":"https://api.github.com/users/zapier/repos","events_url":"https://api.github.com/users/zapier/events{/privacy}","received_events_url":"https://api.github.com/users/zapier/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zapier/zapier-platform-schema","description":":book: The core Zapier Platform schema.","fork":false,"url":"https://api.github.com/repos/zapier/zapier-platform-schema","forks_url":"https://api.github.com/repos/zapier/zapier-platform-schema/forks","keys_url":"https://api.github.com/repos/zapier/zapier-platform-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zapier/zapier-platform-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zapier/zapier-platform-schema/teams","hooks_url":"https://api.github.com/repos/zapier/zapier-platform-schema/hooks","issue_events_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/events{/number}","events_url":"https://api.github.com/repos/zapier/zapier-platform-schema/events","assignees_url":"https://api.github.com/repos/zapier/zapier-platform-schema/assignees{/user}","branches_url":"https://api.github.com/repos/zapier/zapier-platform-schema/branches{/branch}","tags_url":"https://api.github.com/repos/zapier/zapier-platform-schema/tags","blobs_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zapier/zapier-platform-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/zapier/zapier-platform-schema/languages","stargazers_url":"https://api.github.com/repos/zapier/zapier-platform-schema/stargazers","contributors_url":"https://api.github.com/repos/zapier/zapier-platform-schema/contributors","subscribers_url":"https://api.github.com/repos/zapier/zapier-platform-schema/subscribers","subscription_url":"https://api.github.com/repos/zapier/zapier-platform-schema/subscription","commits_url":"https://api.github.com/repos/zapier/zapier-platform-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/zapier/zapier-platform-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/zapier/zapier-platform-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/zapier/zapier-platform-schema/contents/{+path}","compare_url":"https://api.github.com/repos/zapier/zapier-platform-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zapier/zapier-platform-schema/merges","archive_url":"https://api.github.com/repos/zapier/zapier-platform-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zapier/zapier-platform-schema/downloads","issues_url":"https://api.github.com/repos/zapier/zapier-platform-schema/issues{/number}","pulls_url":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/zapier/zapier-platform-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/zapier/zapier-platform-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zapier/zapier-platform-schema/labels{/name}","releases_url":"https://api.github.com/repos/zapier/zapier-platform-schema/releases{/id}","deployments_url":"https://api.github.com/repos/zapier/zapier-platform-schema/deployments","created_at":"2016-10-26T21:27:26Z","updated_at":"2018-04-23T07:46:26Z","pushed_at":"2018-04-27T03:35:57Z","git_url":"git://github.com/zapier/zapier-platform-schema.git","ssh_url":"git@github.com:zapier/zapier-platform-schema.git","clone_url":"https://github.com/zapier/zapier-platform-schema.git","svn_url":"https://github.com/zapier/zapier-platform-schema","homepage":"https://zapier.github.io/zapier-platform-cli/","size":341,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":7,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43"},"html":{"href":"https://github.com/zapier/zapier-platform-schema/pull/43"},"issue":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/43"},"comments":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/zapier/zapier-platform-schema/statuses/3bc48642b6b29df21a1d8238e5749d1021891963"}},"author_association":"OWNER"}}
{"actor":{"display_login":"bcooksey"}}